From ac6abc6680fbb49ccfe78afb6268000fdb89d865 Mon Sep 17 00:00:00 2001 From: blasty Date: Fri, 24 Jul 2026 16:29:00 +0200 Subject: palette: fix results width (were compounded narrower than the modal) The extra `CommandPalette CommandList { width: 80% }` rule set the results list to 80% of the already-80% container -> ~64%, so the results were visibly narrower than the input/modal. Drop it and instead pin the overlay `#--results` to 100% of the palette Vertical, so the results span the full modal width. Verified the input/results width relationship now matches the stock palette exactly (results = modal width, input 2 cols narrower from its border) at 80% scale. --- idatui/app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idatui/app.py b/idatui/app.py index 75a3f5a..3e84c6f 100644 --- a/idatui/app.py +++ b/idatui/app.py @@ -2452,9 +2452,10 @@ class IdaTui(App): #xref-title { dock: top; height: 1; background: $accent; color: $text; padding: 0 1; } #xref-list { height: auto; max-height: 100%; } SymbolPalette { align: center middle; } - /* Give the stock Ctrl+P command palette side padding instead of full width. */ + /* Give the stock Ctrl+P command palette side padding instead of full width; + the input + results inherit this width (results is an overlay, so pin it). */ CommandPalette > Vertical { width: 80%; max-width: 120; } - CommandPalette #--results, CommandPalette CommandList { width: 80%; max-width: 120; } + CommandPalette #--results { width: 100%; } #pal-box { width: 96; max-width: 92%; height: auto; max-height: 80%; border: thick $accent; background: $panel; } #pal-title { dock: top; height: 1; background: $accent; color: $text; padding: 0 1; } -- cgit v1.3.1-sl0p