diff --git a/Browser.py b/Browser.py index 87ac0a6..1c7cbaf 100644 --- a/Browser.py +++ b/Browser.py @@ -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])