web-monetization-extension icon indicating copy to clipboard operation
web-monetization-extension copied to clipboard

fix: remove fixed popup height to prevent scrollbar at high zoom

Open ARYPROGRAMMER opened this issue 4 months ago • 4 comments

Context

Popup has scrollbar when browser zoom >100%.

The popup uses a fixed height constraint that doesn't accommodate content scaling at zoom levels above 100%, causing unwanted scrollbars. This affects usability across different browsers and devices.

Closes #1014

Changes proposed in this pull request

Remove the fixed h-popup height class from the MainLayout component to enable dynamic popup sizing based on content height. This ensures the popup window resizes automatically to fit content at all zoom levels without scrollbars.

Modified MainLayout.tsx to remove h-popup class from the root div

ARYPROGRAMMER avatar Oct 20 '25 20:10 ARYPROGRAMMER

such a simple change it was and worked like a charm

for review: @sidvishnoi

ARYPROGRAMMER avatar Oct 20 '25 20:10 ARYPROGRAMMER

The problem with removing the height like this means the extension popup will keep changing size based on content, which isn't a user good experience.

Screen.Recording.2025-10-21.at.14.12.38.mov

the other fix would involve some or the other hardcoded things, even though the connect button is dynamically positioned it would be the most optimal change [maybe add the button to the top]. in any case i am doing another change this is also good and solves the problem.

@sidvishnoi did the changes

ARYPROGRAMMER avatar Oct 21 '25 09:10 ARYPROGRAMMER

@ARYPROGRAMMER I see in the wallet info screen, there's a scrollbar even without browser zoom when the advanced section is open, and the overall UI looks squished.

image

Also, note info/warning pages have content moved to top instead of center: image

I'm not sure of the way forward here. I have asked the team for some design direction.

Meanwhile, would you like to work on some other issues? 1187 and 1188 are good options - I can assign either to you if you comment on those issues.

sidvishnoi avatar Oct 22 '25 10:10 sidvishnoi

yes pls you can assign me both @sidvishnoi ,the problem with this is that the design might be too complicated or might need re refractoring of the mainlayout for that per say. I still think h-popup removal was the easiest and comfortable thing to do but yes surely let's come back to this later

ARYPROGRAMMER avatar Oct 22 '25 10:10 ARYPROGRAMMER

Thanks for your efforts here @ARYPROGRAMMER. I'll be closing this PR for maintenance reasons, while we figure out with design/product teams the best way to fix https://github.com/interledger/web-monetization-extension/issues/1014.

sidvishnoi avatar Nov 24 '25 10:11 sidvishnoi