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

Improve modal styles on mobile #277

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

elias-garcia
Copy link
Contributor

What does this PR does?

This PR improves the modal styles on mobile devices as users were not able to type the "I understand" phrase check on smaller devices due to the big margin top on them.

Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Respect code style and lint
  • Update documentation (if needed)

@elias-garcia elias-garcia requested a review from amonsosanz April 3, 2023 15:47
@cla-bot cla-bot bot added the cla-signed label Apr 3, 2023
@@ -4,12 +4,15 @@ import { Theme } from "src/styles/theme";

Copy link
Contributor

Choose a reason for hiding this comment

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

the 480 breakpoint is broken

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mmmm what do you mean by broken? Which device where you trying to test? It seems that it has very low height.

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean that I can not scroll down and see the complete modal. I'm using Chrome Desktop and reducing the width to 480.

@@ -4,12 +4,15 @@ import { Theme } from "src/styles/theme";

export const useConfirmationModalStyles = createUseStyles((theme: Theme) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

Under 330px the button is not properly rendered

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No mobile phone has 330px width nowadays... I took as a reference a Pixel 5 (a mobile phone from 3 years ago) and an iPhone SE (released in 2016) to test it and it works fine on that mobiles. Same for the comment below.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, if we don't care about these resolutions, it's all ok. Approved.

@@ -29,10 +29,16 @@ export const useNetworkBoxStyles = createUseStyles((theme: Theme) => ({
alignItems: "center",
Copy link
Contributor

@amonsosanz amonsosanz Apr 4, 2023

Choose a reason for hiding this comment

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

The buttons of the box should wrap:

image

@elias-garcia elias-garcia merged commit 94fe84e into develop Apr 4, 2023
@elias-garcia elias-garcia deleted the improve-modals-on-mobile branch April 4, 2023 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants