addons icon indicating copy to clipboard operation
addons copied to clipboard

[Bug]: Unnecessary scrollbar under screenshots

Open anewuser opened this issue 11 months ago • 3 comments

What happened?

  • Maximize your Firefox window
  • Go to https://addons.mozilla.org/addon/youtube-no-translation/

Result: there's a scrollbar under the screenshots.

What did you expect to happen?

The scrollbar could be hidden when it is not necessary.

Is there an existing issue for this?

  • [x] I have searched the existing issues

┆Issue is synchronized with this Jira Task

anewuser avatar Jan 30 '25 20:01 anewuser

Hi,

I can't reproduce with my Firefox Nightly and Release on Linux. What window size are you seeing this on, and with which version of Firefox & OS ?

diox avatar Jan 30 '25 21:01 diox

The value is currently set to scroll. This makes any browser following the CSS specs display a disabled scrollbar. Changing it to auto keeps it hidden unless the content overflows. See https://www.w3.org/TR/css-overflow-3/#valdef-overflow-scroll.

I don't know why it is behaving differently for you on Linux.

https://github.com/user-attachments/assets/8c50ef5f-4f39-49d6-86df-25867ce38969

https://github.com/user-attachments/assets/3b4736d5-27d2-4508-aaa3-d3eb78ae5ff8

anewuser avatar Jan 30 '25 22:01 anewuser

I wonder if that was intentional to avoid potential content jumping around as the page is loading...

diox avatar Feb 18 '25 14:02 diox

I could not reproduce this on any platform on stage or prod. I do see overflow-x: auto, and with something similar on AMO dev I don't see problems.

ioanarusiczki avatar Apr 09 '25 12:04 ioanarusiczki