From 089dfc005f22bc882c0185735c6115c28b826053 Mon Sep 17 00:00:00 2001 From: SRHTNIN Date: Thu, 24 Sep 2026 23:26:10 +0200 Subject: [PATCH] Toolbar no longer takes half the window with breadcrumbs hidden --- Browser.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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])