Automatic resizing of tabs

Talk about code development, features, specific bugzilla bugs, enhancements, patches, and other highly technical things.

Moderator: satrow

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 referenced Bugzilla bugs, mercurial, 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. Most "bug reports" do not belong in this board and should initially be posted in Community Support or other relevant support boards.

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: 23473
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
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?
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

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: 23473
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
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.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

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: 23473
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
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.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"If you want to build a better world for yourself, you have to be willing to build one for everybody." -- Coyote Osborne

Locked