Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: GasStationPopover causing horizontal overflow #3975

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

jakubcolony
Copy link
Contributor

@jakubcolony jakubcolony commented Oct 11, 2022

Description

This PR fixes the issue described in #3781. Unfortunately after spending good few hours on it I was unable to pinpoint what the issue is exactly (my bet is either Popper positioning not working properly or a Chrome-specific issue, since it doesn't occur in other browsers). After a call with @chinins I decided to amend the placement of the gas station popover so that it "faces away" from the right edge of the window and doesn't cause overflow:
image

The issue was quite tricky to reproduce in first place so here are the steps I followed:

  • Connect a wallet
  • Go to the Profile page
  • Click on the address button
    You should see a horizontal overflow equal to roughly the width of the popover

Resolves #3781

@jakubcolony jakubcolony self-assigned this Oct 11, 2022
@jakubcolony jakubcolony requested a review from a team October 11, 2022 22:03
@jakubcolony jakubcolony changed the title Fix: Change GasStationPopover placement Fix: GasStationPopover causing horizontal overflow Oct 11, 2022
Copy link
Contributor

@chinins chinins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is a good solution.

Copy link
Contributor

@Julianahlk Julianahlk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the intended behavior then it looks good to me:
overflow
@jakubcolony can you confirm?

@jakubcolony
Copy link
Contributor Author

Hey @Julianahlk, I'm not 100% sure what you're showing - after opening the popover, are you resizing your browser window or is there something else going on?

Copy link
Contributor

@Julianahlk Julianahlk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Julianahlk, I'm not 100% sure what you're showing - after opening the popover, are you resizing your browser window or is there something else going on?

I am not referring to the re sizing of the browser I was referring to the pop over's size. But disregard, I was looking at this issue really fast but It looks good 👍.

@jakubcolony jakubcolony force-pushed the fix/3781-gas-station-popover-overflow branch from b970912 to b1088c3 Compare October 13, 2022 18:44
@jakubcolony jakubcolony merged commit 0f3faf7 into master Oct 13, 2022
@jakubcolony jakubcolony deleted the fix/3781-gas-station-popover-overflow branch October 13, 2022 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Horizontal overflow when clicking from user profile to address dropdown on first clicks
3 participants