From 025b66744a3db7152cd1995726cb96c760636791 Mon Sep 17 00:00:00 2001 From: Dave Pearson <3487031+talblubClouby96@users.noreply.github.com> Date: Wed, 26 Apr 2023 14:29:18 +0100 Subject: [PATCH] Dock the sidebar to the left side and fix its width See #5. This also works around https://github.com/Textualize/textual/issues/2378 --- frogmouth/widgets/navigation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frogmouth/widgets/navigation.py b/frogmouth/widgets/navigation.py index 23cdb45..af59828 100644 --- a/frogmouth/widgets/navigation.py +++ b/frogmouth/widgets/navigation.py @@ -21,10 +21,10 @@ class Navigation(Vertical): DEFAULT_CSS = """ Navigation { - width: 1fr; - min-width: 42; + width: 42; background: $panel; display: none; + dock: left; } Navigation:focus-within {