From 0ad929a4b6544f7413de96b572c9077288767cf5 Mon Sep 17 00:00:00 2001 From: shuki Date: Sat, 7 Mar 2026 01:15:23 +0200 Subject: [PATCH] Fix main menu scroll on mobile: align top and enable overflow When in vertical layout (narrow screens), align content to top and enable vertical scrolling so the menu list isn't cut off. Co-Authored-By: Claude Opus 4.6 --- tui/screens/main_menu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tui/screens/main_menu.py b/tui/screens/main_menu.py index 4f9dd6e..0712cc7 100644 --- a/tui/screens/main_menu.py +++ b/tui/screens/main_menu.py @@ -70,8 +70,12 @@ class MainMenuScreen(Screen): logo.display = width >= 48 if width < 100: layout.styles.layout = "vertical" + layout.styles.align = ("center", "top") + layout.styles.overflow_y = "auto" else: layout.styles.layout = "horizontal" + layout.styles.align = ("center", "middle") + layout.styles.overflow_y = "hidden" def on_option_list_option_selected(self, event: OptionList.OptionSelected) -> None: option_id = event.option.id