From 7601d5e18af5cea8abdf37a132806f52df26f8c8 Mon Sep 17 00:00:00 2001 From: blasty Date: Fri, 24 Jul 2026 16:26:42 +0200 Subject: palette: give the command palette side padding (80% width, max 120) The stock Ctrl+P palette spans the full terminal width, which looks off on wide terminals. Constrain CommandPalette > Vertical (and the #--results/CommandList overlay) to 80% width capped at 120 cols; it's already center-aligned, so this leaves symmetric left/right margins. Verified via pilot: input-row width 78/110/118 for terminals 100/140/200 (vs full width before), and the palette scenarios still pass (7/7). --- idatui/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idatui/app.py b/idatui/app.py index 2a3e617..75a3f5a 100644 --- a/idatui/app.py +++ b/idatui/app.py @@ -2452,6 +2452,9 @@ 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. */ + CommandPalette > Vertical { width: 80%; max-width: 120; } + CommandPalette #--results, CommandPalette CommandList { width: 80%; max-width: 120; } #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