Skip to content

expand account subtabs vertically when extra space is available#2010

Open
PeterXMR wants to merge 1 commit into
sparrowwallet:masterfrom
PeterXMR:fix/1578-vertical-account-tabs
Open

expand account subtabs vertically when extra space is available#2010
PeterXMR wants to merge 1 commit into
sparrowwallet:masterfrom
PeterXMR:fix/1578-vertical-account-tabs

Conversation

@PeterXMR

@PeterXMR PeterXMR commented May 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #1578.

Binds each subtab's pref-width to (paneHeight - 20) / tabCount, clamped to [90, 180]. Wallets with 2-4 named accounts now get enough horizontal room for full labels; the 90px floor preserves the existing layout when many tabs are present. Math is in AppController.computeSubTabSize, tested at the boundaries (0/min/max/in-range/zero).

Visually verified via an in-process Node.snapshot() harness against a TabPane configured exactly like the wallet sidebar.

Binds each subtab pref-width to (paneHeight - 20) / tabCount, clamped to [90, 180], so wallets with named accounts get more horizontal room for their labels when there is extra vertical space in the sidebar. Falls back to the previous 90px floor when many tabs are present.
@PeterXMR PeterXMR force-pushed the fix/1578-vertical-account-tabs branch from 98b74d1 to 19fc5fe Compare May 26, 2026 17:52
@PeterXMR PeterXMR changed the title Expand account subtabs vertically when extra space is available expand account subtabs vertically when extra space is available May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

expand account tabs vertically if extra room

1 participant