diff options
| author | blasty <blasty@local> | 2026-07-25 11:54:50 +0200 |
|---|---|---|
| committer | blasty <blasty@local> | 2026-07-25 11:54:50 +0200 |
| commit | 492dd513a62e7f9d1db56e26af7d518ec7a054f5 (patch) | |
| tree | 07327e23571d94bbd10c128f3f9b698639f229ac | |
| parent | projects: switch between a project's binaries in the TUI (phase 1c) (diff) | |
| download | ida-tui-492dd513a62e7f9d1db56e26af7d518ec7a054f5.tar.gz ida-tui-492dd513a62e7f9d1db56e26af7d518ec7a054f5.tar.xz ida-tui-492dd513a62e7f9d1db56e26af7d518ec7a054f5.zip | |
ui: centre the strings and project palettes (were clamped top-left)
`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).
| -rw-r--r-- | idatui/app.py | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
