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

Webextensions: Cannot make tab panel narrower #1373

Closed
nh2 opened this issue Sep 26, 2017 · 15 comments
Closed

Webextensions: Cannot make tab panel narrower #1373

nh2 opened this issue Sep 26, 2017 · 15 comments
Labels
Firefox-issue bug of Firefox itself WebExtensions

Comments

@nh2
Copy link
Contributor

nh2 commented Sep 26, 2017

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!

@piroor piroor added WebExtensions Firefox-issue bug of Firefox itself labels Sep 27, 2017
@piroor
Copy link
Owner

piroor commented Sep 27, 2017

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

@Keith94
Copy link

Keith94 commented Sep 27, 2017

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

#sidebar {
  min-width: 100px !important;
}

@nh2
Copy link
Contributor Author

nh2 commented Sep 27, 2017

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

@Keith94 Thanks, that worked!

@nh2
Copy link
Contributor Author

nh2 commented Sep 27, 2017

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.)

@piroor
Copy link
Owner

piroor commented Sep 27, 2017

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

@nh2
Copy link
Contributor Author

nh2 commented Sep 27, 2017

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.

@piroor
Copy link
Owner

piroor commented Sep 28, 2017

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.)

@naclander
Copy link

naclander commented Sep 30, 2017

@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 ).

@Keith94
Copy link

Keith94 commented Sep 30, 2017

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

#sidebar-header {
  display: none;
}

@naclander
Copy link

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

@Keith94
Copy link

Keith94 commented Sep 30, 2017

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

@Keith94
Copy link

Keith94 commented Sep 30, 2017

However you can edit and save the file directly from Firefox's dev tools. See Timvde/UserChrome-Tweaks#4

@piroor
Copy link
Owner

piroor commented May 1, 2019

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

@piroor piroor closed this as completed May 1, 2019
@AgentOak
Copy link

Since Firefox 107.0 the size limitation is on the #sidebar-box instead of the #sidebar element, so the CSS needs to be updated:

#sidebar-box {
  min-width: 100px !important;
}

Should be updated on the wiki on these two entries:

@fiskhest
Copy link

I was seeing issues with this on Firefox 107.0 on both linux and windows and can confirm @AgentOak's findings. I have updated the relevant wiki snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Firefox-issue bug of Firefox itself WebExtensions
Projects
None yet
Development

No branches or pull requests

6 participants