Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion: Tab height varies depending on number of tabs #253

Open
Mr-Personality opened this issue Sep 26, 2020 · 0 comments
Open

Comments

@Mr-Personality
Copy link

Problem:
Tabs are always 28 pixels tall. This looks perfect when tabs fill the screen height. But this looks too small when you only have a handful of tabs open. It makes tabs look unimportant.

Solution:
Tab height should be dynamic, based on these rules:

Variables:
n = number of open tabs
s = 85% of the total vertical space available for the tabs [it looks best to leave 15% blank space, where possible]

// If there's room, set tabs to a maximum height of 64 pixels
If s/n > 63 then tab height = 64

// If there's no room for anything bigger, set the tabs to the smallest they can be
Else if s/n < 29 then tab height = 28

// Else scale the tabs so they leave 15% blank space
Else tab height = s/n

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

No branches or pull requests

1 participant