mirror of
https://git.srhtnin.garden/sarah/SaraFem.git
synced 2026-10-13 18:18:11 +02:00
Toolbar no longer takes half the window with breadcrumbs hidden
This commit is contained in:
1 parent
3cb1f416fb
commit
089dfc005f
1 file changed
+5
-4
+5
-4
@@ -223,11 +223,12 @@ class Browser(ft.Row):
|
||||
def _BuildToolbarBar(self) -> ft.Control:
|
||||
"""Breadcrumbs and the button toolbar share one bar, each taking half
|
||||
the width — not two separate full-width rows."""
|
||||
ToolbarContainer = ft.Container(
|
||||
self.ActionsToolbar, padding=8, expand=1 if self.Config.ShowBreadcrumbs else True
|
||||
)
|
||||
if not self.Config.ShowBreadcrumbs:
|
||||
return ToolbarContainer
|
||||
# Alone, the toolbar sits straight in the file column, where
|
||||
# `expand` means height, not width: with it, the toolbar took half
|
||||
# the window. The column already stretches it to full width.
|
||||
return ft.Container(self.ActionsToolbar, padding=8)
|
||||
ToolbarContainer = ft.Container(self.ActionsToolbar, padding=8, expand=1)
|
||||
BreadcrumbsContainer = ft.Container(self.Breadcrumbs, padding=8, expand=1)
|
||||
return ft.Row([BreadcrumbsContainer, ToolbarContainer])
|
||||
|
||||
|
||||
Reference in new issue
Block a user