fix(ui): console-commands modal slide + wallets footer clipping
Two follow-ups to the modal float work: - Console RPC command reference (renderCommandsPopup) had the SAME auto-height feedback bug as Wallets: BlurFloat with no cardHeight, and its fill-height command list read GetContentRegionAvail() inside the AutoResizeY child -> self-referential, sliding content off-screen after a monitor move. Give it a FIXED viewport-relative cardHeight (fills ~84% of the viewport). Also removed its duplicate body H6 heading (the framework h6 title already shows it) — missed earlier because it's spec-form, not the positional overload. - Wallets footer clipping: after the fixed-height conversion the content child clips overflow (NoScrollbar), and the hardcoded 130*dp reserve below the table was too small for the create/add-folder rows + separator + footer (~160*dp), so the buttons clipped — worse at 150%. Compute the reserve from real widget metrics (GetFrameHeightWithSpacing + caption height) so it holds at any DPI. Added a modal-console-commands sweep surface (debug-gated ConsoleTab setter) so the popup is captured. Verified both at 100% and font_scale 1.5 (150%): footers on-screen, single headings, lists fill, nothing clipped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -399,6 +399,11 @@ void App::buildSweepCatalog()
|
||||
add("market-rows-featured", ui::NavPage::Market,
|
||||
[](App& a) { if (a.settings_) a.settings_->setPortfolioStyle(2); },
|
||||
[](App& a) { if (a.settings_) a.settings_->setPortfolioStyle(0); });
|
||||
|
||||
// Console RPC command-reference popup (fixed-height dialog with a fill-height command list).
|
||||
add("modal-console-commands", ui::NavPage::Console,
|
||||
[](App& a) { a.console_tab_.sweepSetCommandsPopup(true); },
|
||||
[](App& a) { a.console_tab_.sweepSetCommandsPopup(false); });
|
||||
}
|
||||
|
||||
// ── State machine ───────────────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user