From fd0ccefad05851195d5d873d7e533748a7712fc2 Mon Sep 17 00:00:00 2001 From: shuki Date: Thu, 5 Mar 2026 23:48:15 +0200 Subject: [PATCH] Make main menu responsive to terminal size Use 1fr width with max-width, reduce button height/margins, and enable overflow scroll so all items fit smaller terminals. Co-Authored-By: Claude Opus 4.6 --- tui/gniza.tcss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tui/gniza.tcss b/tui/gniza.tcss index c0ae5be..d911e93 100644 --- a/tui/gniza.tcss +++ b/tui/gniza.tcss @@ -13,18 +13,22 @@ Screen { /* Main menu */ #main-menu { - width: 50; + width: 1fr; + max-width: 60; padding: 1 2; + overflow-y: auto; } #main-menu Button { width: 100%; - margin: 0 0 1 0; + height: 3; + margin: 0; } #logo { text-align: center; - padding: 0 0 1 0; + height: auto; + padding: 0; } /* Data tables */