This is a quick & dirty demo WebExtension for Firefox to play with styles that adapt to browser action popups invoked from the toolbar versus the (presumably narrower) menu sidebar.
about:debugging
in Firefoxmanifest.json
as a temporary add-on.A WebExtension in Firefox can add a button that summons a popup
panel, using browser_action
in manifest.json
.
By default, this button is in the toolbar and the popup is automatically sized
to fit the content.
However, this button can be moved to the sidebar menu
and in this case the popup gets a fixed width. Though, of course, this fixed
width is specified in em
font units and actually varies depending on font
sizes & DPI between platforms.
Anyway. It would be nice to have popup styles that vary between the variable sizing from the toolbar and the fixed width (but semi-variable height!) from the sidebar menu.