Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

Dialog size doesn't match content size when using "Default zoom" setting in Firefox #84

Open benblank opened 1 month ago

benblank commented 1 month ago

I set the "Default zoom" setting in Firefox to 150% in order to make pages easier to read on my laptop screen. Unfortunately, this seems to cause issues for Open in Browser, as the content of the dialog honors the zoom level (which is great!), but the dialog size doesn't (which is less great).

For example, here's a screenshot of how Open in Browser's dialogs look when they open:

a screenshot of the Open in Browser dialog when the Default zoom is 150%

However, it's clearly sizing the dialog correctly for its content if the zoom level is ignored. If I use Ctrl+MouseWheel to zoom back out to 100%[^1] in the same dialog which appears above, the content fits the dialog perfectly:

a screenshot of the same dialog, but zoomed back out to 100%

[^1]: Kind of… If I only zoom out to 100% (five steps), the content still overflows the dialog. But if I zoom out to 90% (six steps) and then back in to 100%, the content fits perfectly, as shown in the second screenshot.