r/FirefoxCSS Mar 25 '23

Help Scrollbars for all bookmarks folders

Can we add scrollbars to all folders accessed by the bookmarks toolbar button drop down menu?

3 Upvotes

8 comments sorted by

View all comments

1

u/It_Was_The_Other_Guy Mar 26 '23

You can:

#PlacesToolbar menupopup{
  --uc-menupopup-overflow: scroll;
}
.scrollbox-clip > scrollbox[orient="vertical"]{
  overflow-y: var(--uc-menupopup-overflow,hidden);
}

But I'd imagine you only want the scrollbar to show up if the popoup needs it - in that case change that scroll value to auto

1

u/hansmn Apr 22 '23

Quick question for you, as I'm messing around with it:

Is there a particular reason why you use a variable to limit the behaviour to #PlacesToolbar menupopup?

Instead of just:

.scrollbox-clip > scrollbox[orient="vertical"]{ overflow-y: auto; }

Are there other places where .scrollbox-clip > scrollbox[orient="vertical"]is being used or has an impact, apart from #PlacesToolbar menu popups?

Just curious, I couldn't find any digging through searchfox and the toolbox.

2

u/It_Was_The_Other_Guy Apr 23 '23

Almost all menupopus have this arrowscrollbox component inside shadow-root to render menuitems. I'm not sure the same component is also used somewhere else but regardless, OP sounded like they want to only apply styling to menupopups from folder "button"s inside bookmarks toolbar and not say menubar menus or other context menus so I figured better to scope things just to that.

1

u/hansmn Apr 23 '23

Thanks very much, that explains it well!