Automatic resizing of tabs

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35634
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Automatic resizing of tabs

Unread post by Moonchild » 2011-09-05, 07:28

I'm thinking of implementing the following, resulting from bug #667607
(In reply to rob64rock from comment #18)

So, it's now updated: http://userstyles.org/styles/53190/fire ... e-behavior

.tabbrowser-tab:not([pinned]) {
max-width: 250px !important;
min-width: 100px !important;
}

.tabbrowser-tab:not([fadein]) {
max-width: 1px !important;
min-width: 1px !important;
max-width: 1px;
min-width: 1px;
}

.closing-tabs-spacer {
width: 0 !important;
}

Now with style enabled, it disables the resizing tab close behavior(allowing tabs to snap back instantly) without disabling open/closing tab animations(if enabled) for those still wanting tab animations.

Still those who want to disable Open/Close tab animations can set about:config pref:
browser.tabs.animate; set to false.
Question is: would I put it in userchrome, the main browser css, or somewhere else?
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

sdrocking

Re: Automatic resizing of tabs

Unread post by sdrocking » 2011-09-07, 09:16

This is a feature present in other browsers (Google Chrome) also, and many users may like it this way. Make this code into an addon, disabled by default.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35634
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Automatic resizing of tabs

Unread post by Moonchild » 2011-09-07, 15:54

As the bug states, this is a band-aid until they parameterize it ;-)
So.. more Chrome copying going on then? why am I not surprised...
Seriously though, if you want to immediately resize tabs to see the info on them, this is a big annoyance. (just as many users hate it this way too :P )

I don't think an add-on would be a good idea, actually. considering the minimal snippet of css this is, an add-on would be too much overhead.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

diNovoM

Re: Automatic resizing of tabs

Unread post by diNovoM » 2011-09-09, 18:05

Hm, may add it to Pale Moon status bar add-on? Which might be renamed to pale moon options or s.t. like that. ^^

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35634
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Automatic resizing of tabs

Unread post by Moonchild » 2011-09-10, 09:14

diNovoM wrote:Hm, may add it to Pale Moon status bar add-on? Which might be renamed to pale moon options or s.t. like that. ^^
It's going to be parameterized anyway, afaik, so whichever solution is going to be temporary.
I think just using userchrome with the stated code by the user or installing the style linked to is as good a solution as any.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked