-
Notifications
You must be signed in to change notification settings - Fork 281
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 Request: Setting for tab height #236
Comments
For "Default (specified by the Theme)" style you can put something like following to userChrome.css: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); .tabbrowser-tab { padding-top: 0 !important; padding-bottom: 1px !important; } .tabbrowser-tab .tab-content { margin-top: -1px !important; } |
Thanks! This works as is for keeping much more in view. It reveals something that has been there for a while though. The left-side tree aligns towards the bottom instead of the top (see screen shot). I never bothered with it when I always had the column filled up. Is this a TST thing or would it be more in the styles domain? |
In new versions tabs in Mixed style increased in height, so I wrote style: |
Thank you Infocatcher! I did lose that mod when updating. It would be hard to go back to fat tabs! |
i like also to have a setting for the tab hight why? (PS: i use metal theme) |
+1 for this. Recent versions of firefox have made the tabs obnoxiously large, no doubt the personal preference of some designer. I OTOH prefer to increase my productivity, instead of wasting screen space simply because someone else thinks it's too cluttered. At the moment I am using this workaround in
However, this only works when tabs are on the left or right (i.e. vertical). I tried for a few minutes to make it work even in horizontal mode, but it's much more tricky, and you need to override a bunch of extra things. I gave up because I don't use horizontal mode, but someone else is free to try - you may first need to do this to be able to inspect the browser chrome using the Browser Toolbox (I find DOM Inspector too primitive for this task). It would be nice if TST made it easier for users to set the tab height, at least in vertical mode where the benefit is much greater (space is saved per-tab), and the cost of implementing it is much simpler (as I demonstrated above). |
The cost to implement such a new "configuration feature" seems too large for its benefit. |
What about copying and adapting the code that already exists for the "tab width" configuration feature? |
Currently the height of tabs can be controlled via userChrome.css by your hand completely. So, adding new configuration UI for it is just for lazy users who don't want to write userChrome.css by himself. On the other hand, for technical reasons, the width of the tab bar is managed by the program itself, and it is hard to be controlled via userChrome.css. Moreover, TST sometimes wrongly set too large / too small width. The configuration UI is also required to fix such broken value, for emergency. Note, any adding of new codes increases maintenance cost. I don't want to add needlessly rich configuration UIs which can be alternated with other major customization way except the "about:config". |
OK, I understand, thanks for the feedback. In case anyone is looking for this feature, I found Thin Tabs in the meantime which works well for vertical tabs and almost-OK for horizontal tabs. The benefit is more than just to avoid writing userChrome.css - each user has to figure that out for themselves, which can take a long time, especially if you don't know the technical details of how the firefox chrome works. |
To be honest, I think that most TST users have less motivation to customize height of tabs - detault height of tabs should satisfy most people. Otherwise I should change default height of tabs to thinner (or thicker) to fit to actual usecases. |
Even if it closed, and even if it can be modified by creating a file a putting some CSS code in it, I think it would be a cool feature to have this in menu. Lots of people don't even think to search for a solution on google if it is not proposed in the UI. |
Can someone please provide working userChrome.css for changing (decreasing) tab height in the new webextension version? An hour of trying and I've failed. FWIW I agree it would be a natural setting to include in the options UI. Many people who use vertical tabs do so expressly to make the most of screen real estate. For this reason I prefer my vertical tabs as short in height as possible. |
TST 2.0 has ability to define user-defined style rules. This is an example to shrink tab height: :root { --tab-height: 20px !important; }
.tab { height: 20px !important; } |
Ah, thank you. Speaking of the extra style rules, earlier I tried to enable the unread tab styling, but it doesn't seem to do anything when I uncomment it?
|
I think it needs an |
@piroor |
@X-Raym There is a text entry box in the options screen, under Advanced: Extra style rules for sidebar contents. Paste code into there. @Keith94 I wonder if unloaded tabs can currently be styled. But I think that is off-topic for this thread. |
"I wonder if unloaded tabs can currently be styled."
|
@TheSweetLily Oh, I was unaware of the wiki page. Thank you very much. |
@seascape Here hat I see under the Advanced Panel: I don't see any extra style rules for sidebar contents. Do I miss something obvious ? (note I'm using the French version) |
@X-Raym Your version is legacy TST 0.19 for Firefox 56- and this issue is about TST 2.0 for Firefox 57+. |
@piroor Ok, then I'll wait until v57 is official. Thanks! |
I've modified it a bit, so pinned tab icons don't get squashed: :root { --tab-height: 20px !important; }
.tab:not(.pinned) { height: var(--tab-height) !important; } Full tabs have no issues with favicons being smaller than 'normal' but pinned icons do, they get cut with margins. |
These (especially the last one) worked perfectly in v57 for me. Much needed. Thank you! |
@magikmw 's solution works great! |
Thank @magikmw for sharing, and @piroor for making TST. I see that the top bar tab height changes with the selected "Density" ("compact", "normal" or "touch") in the UI personalization. "compact" appears to be the closest to what I had in v56, which I can now achieve with a height of 27 pixels in the extra stye rules. |
I think it is impossible, because there is no such WebExtensions API. |
@magikmw's solution is good for not having a gap between regular tabs and pinned tabs, but is there a way to have pinned tabs the same height without having a gap? |
I'm fairly sure that the gaps are still there due to how the pinned tab icons are placed, based on these few lines. |
You really should make it the default setting with 25px height. It seems to be the same as it was in the pre WebExtension versions. And there's no need to collapse trees by default with that tab height (I don't think it was the default setting before). |
@tbertels I think that the default height of tabs should match to Firefox 57's Photon design, instead of previous version of TST itself. |
Maybe an option with a checkbox could be added to restore the old design? CSS styling is too difficult for most users (finding the old design CSS rules + pasting them in the options). |
Sorry, but it is different from TST's design policy. Basically I put configuration UIs only for limited cases:
Changing height of tabs seems relatively easier than other existing configs. |
I'm not able to change the height of the tabs. I've tried all the methods I can find on this page as well as on the snippets page. I know that |
It has to go in the Tree Style Tab settings. |
The current CSS snippet that links to here has:
But as of right now, that alone doesn't work. It apparently needs to have a --tab-height with the same value:
|
Works ok for me. Here are all of what I use to customize tab appearances. Lots to play with.
|
Okay, I've done some testing here and there, and it looks like there's no need for a |
I'm using this, it still works fine with Firefox 89:
|
Thanks, I should restart FF to resolve overlapping |
Possible? I run TST vertical on left and typically more tabs than are visible for the vertical space. The tab size is plenty big to read and work with. I would love to shrink the height by ~15-25%. Perhaps proportional to a configurable font size? Is there an About:xxxxx setting that could be used if it is not built into the settings UI? extensions.treestyletab.tabbar.heightextensions.treestyletab.tabbar.height doesn't do it (maybe that's for horizontal tabbar) Thanks.
screenshot may not indicate how big the tabs subjectively appear on my 20" 1600x900 monitor.
http://img685.imageshack.us/img685/14/tsttabsize.png
The text was updated successfully, but these errors were encountered: