Toolbar no longer takes half the window with breadcrumbs hidden

This commit is contained in:
sarah committed 2026-09-24 23:26:10 +02:00
1 parent 3cb1f416fb
commit 089dfc005f
1 file changed
+5 -4
+5 -4
View File
@@ -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])