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(frontend): background was not hiding overflow [GIX-3067] #2641

Merged

Conversation

AntonioVentilii-DFINITY
Copy link
Contributor

Motivation

After PR #2621 , there is an error in the background. Since the big background is used for smaller screen, there is no overflow control and the screen ends up being larger and longer.

To solve it we wrap the background in a container that will manage the overflow (and the general position), while the background image keeps its dimensions.

Before

Screen.Recording.2024-10-03.at.21.47.37.mov

After

Screen.Recording.2024-10-03.at.21.46.41.mov

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY requested a review from a team as a code owner October 3, 2024 19:51
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY changed the title fix(frontend): background was not hiding overflow fix(frontend): background was not hiding overflow [GIX-3067] Oct 3, 2024
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

Looks good but, I'm now just wondering how does it looks like in Figma. Is it correct that only the top left part of the background should be displayed on small device?

@AntonioVentilii-DFINITY
Copy link
Contributor Author

@peterpeterparker for now yes, but we are going to change the background soon enough (in that case it will not be an issue to have it stick to top-left, according to design)

Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

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

LGTM, thx

@AntonioVentilii-DFINITY AntonioVentilii-DFINITY merged commit a80462f into main Oct 4, 2024
9 checks passed
@AntonioVentilii-DFINITY AntonioVentilii-DFINITY deleted the fix(frontend)/background-was-not-hiding-overflow branch October 4, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants