Treestyletab: Webextensions: Cannot make tab panel narrower

Created on 27 Sep 2017  路  13Comments  路  Source: piroor/treestyletab

Short description

I noticed that with the 2.0 Webextensions (on Linux, FF nightly 57.0a1 2017-09-18) I can no longer make the tab bar narrower than ~1/6th of my 1366px width screen (that is, wider than ~200px).

Is this a limit in TST or a Webextensions panel restriction?

How can I make it narrower than the ~200px?

Thanks!

WebExtensions bug of Firefox itself

Most helpful comment

I don't think so, WebExtensions API doesn't provide any means to style the browser UI yet.

All 13 comments

It is a limitation of Firefox tiself and WebExtensions-based addons cannot control it. However something userChrome.css rules will do that.

Add the following code to userChrome.css, it should do what you want.

```css

sidebar {

min-width: 100px !important;
}

Add the following code to userChrome.css, it should do what you want.

@Keith94 Thanks, that worked!

It is a limitation of Firefox tiself and WebExtensions-based addons cannot control it.

@piroor Do you know if there's already a Firefox bug for this?

Having some sendible min-width is OK but the way it is currently is too restrictive on low-resolution devices, even for non-TST contents like the bookmarks list.

(Let's close this issue once we've either filed one or found one.)

1346490 - Allow setting min-width and max-width for sidebar seems that, but it was closed as "WONTFiX".

1346490 - Allow setting min-width and max-width for sidebar seems that, but it was closed as "WONTFiX".

Hmm, looks like that issue was about controlling the width from an addon.

I think for our purposes here we should have an addon-unrelated bug that that simply asks FF to decrease the min-width, as it is too wide for low resolutions.

I couldn't find out any bug focusing to the point. (Sorry I won't file it because currently I'm not suffered from "too wide sidebar" - I believe that bugs should be filed by highly motivated parties.)

@Keith94 's CSS seems to do the trick for me as well.

Along these lines, is the ability to remove the "Tree Style Tab" header at the top of the tree list something that's possible, or is this also a limitation of WebExtensions? ( I don't mean to hijack this issue, I can create a new one but this seems related ).

@naclander It's only possible with userChrome.css, as far as I know.

```css

sidebar-header {

display: none;
}

@Keith94 Thanks, that fixed it for me. I'm guessing TST ( or other firefox addons ) can't manipulate chrome/userChrome.css for users?

I don't think so, WebExtensions API doesn't provide any means to style the browser UI yet.

However you can edit and save the file directly from Firefox's dev tools. See https://github.com/Timvde/UserChrome-Tweaks/issues/4

I close this because this is out of the range of WebExtensions-based extension.

Was this page helpful?
0 / 5 - 0 ratings