From 492dd513a62e7f9d1db56e26af7d518ec7a054f5 Mon Sep 17 00:00:00 2001 From: blasty Date: Sat, 25 Jul 2026 11:54:50 +0200 Subject: ui: centre the strings and project palettes (were clamped top-left) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `align: center middle` was set on SymbolPalette only, but StringsPalette and ProjectPalette reuse the same #pal-box without a centring rule of their own — so both rendered clamped against the top-left corner. Apply the rule to all three. Measured on a 140x44 screen: every palette now has equal left/right (22/22) and top/bottom margins. Palette scenarios still green (13/13). --- idatui/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idatui/app.py b/idatui/app.py index a436eb4..568601e 100644 --- a/idatui/app.py +++ b/idatui/app.py @@ -2775,7 +2775,8 @@ class IdaTui(App): #xref-box { width: 84; max-height: 70%; height: auto; border: thick $accent; background: $panel; } #xref-title { dock: top; height: 1; background: $accent; color: $text; padding: 0 1; } #xref-list { height: auto; max-height: 100%; } - SymbolPalette { align: center middle; } + /* every #pal-box palette centres, not just the symbol one */ + SymbolPalette, StringsPalette, ProjectPalette { align: center middle; } /* 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; } -- cgit v1.3.1-sl0p