mozilla / side-view

An experiment with opening mobile views of pages in the sidebar
Mozilla Public License 2.0
180 stars 38 forks source link

How to resize the window? #420

Open luvis opened 5 years ago

luvis commented 5 years ago

I'm new to this extension so I might have missed it if this has been discussed before. But I can't seem to resize the side view to more than about 1/3 of the browser size. I really would like to work with two pages using 1/2 each. Is this possible? if not, can it be made possible? Thanks

fzzzy commented 5 years ago

At this point, it is not possible. Yes, it can be made possible, but would require some changes in firefox itself, so we took it out. Filing a more generic bug against Firefox in bugzilla, something of the effect of "Should be able to resize the sidebar to any width", might be more likely to make this happen. If you do this, link to this bug and explain your rationale for wanting the sidebar to be wider.

If you do file a bugzilla bug, add a link to it as a comment on this bug.

Thanks!

luvis commented 5 years ago

Thanks @fzzzy I hope my explanation in the bug report was sufficient. https://bugzilla.mozilla.org/show_bug.cgi?id=1534449

garlandcrow commented 5 years ago

@fzzzy I don't know that much about the Mozilla APIs, but it is it possible to get the current sidebar width? I notice the same thing on Dropbox Paper where it cuts off (when requesting desktop) and it looks like its because the sidebar is reporting a fixed width to the page. If I open either site on a mobile view in dev tools then the page/video resizes accordingly. So maybe just need to send a message to the page from background when the sidebar width changes?

Hitaro commented 5 years ago

@luvis, There's a tricky solution here: https://superuser.com/a/1276815

KopfKrieg commented 5 years ago

@luvis, There's a tricky solution here: https://superuser.com/a/1276815

Doesn't work for me :( (Firefox 67.0.4)

Hitaro commented 5 years ago

@KopfKrieg, Still works well on v67.0.4. Are you sure you did it the right way? What's your OS? If it's Gnu/Linux, the folder "Chrome" should be started with the lower-case letter "c": chrome

KopfKrieg commented 5 years ago

@Hitaro Thanks, now it's working (had to rename the folder "Chrome" to "chrome").

leogama commented 2 years ago

There are two recent reviews for the Side View add-on that complain about not being able to resize the sidebar to more than 10% of screen width:

I can't reproduce this. My sidebar in updated Firefox expands to ~40% of screen size (528px). I don't think these users have a 5000px width screen with small fonts (as max-width seems to be set in ems).

Can the developers recover these users' Firefox versions and platforms from AMO?

lenainjaune commented 10 months ago

@luvis, There's a tricky solution here: https://superuser.com/a/1276815 Thank you this works great (FF v102.14.0esr) in condition to not forget to enable the consideration of userChrome.css (see the comments below the post)

Anduril97 commented 9 months ago

Updated instructions for Feb 2024 (I'm on Firefox version 123)

Old instructions for Oct. 2023 (I'm on Firefox version 118)

  • Go to Firefox menu: Help -> More Troubleshooting information

  • in Application Basics section find row called Profile Directory, click on Open Directory button

  • create folder here named "chrome"

  • in this folder create a text file called "userChrome.css"

  • open this file in any text editor

  • paste the following text into the file and save it

    / remove maximum/minimum width restriction of sidebar /

    sidebar-box {

    max-width: none !important; min-width: 30% !important; }

  • you can close the text file.

  • now go to about:config in your firefox address bar.

  • paste this in the search bar: toolkit.legacyUserProfileCustomizations.stylesheets

  • change from false to true (press the button on right)

  • restart firefox. done!

  • (Note: you can change the value in min-width to any % or even use something like 20px instead)

(this is an updated version of the solution found at https://superuser.com/a/1276815)

ricardolpd commented 3 months ago

FF seems to have updated the UI (at least on mac)

For me, i had to replace

in Application Basics section find row called Profile Directory, click on Open Directory button create folder here named "chrome"

with: in Application Basics section find row called Profiles and, click on about:profiles, select Profile: default-release and root directory and open folder, (then follow @Anduril97 instructions)