-
Notifications
You must be signed in to change notification settings - Fork 5.2k
feat: updating popup width of extension from 357px to 400px #31443
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
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@@ -25,7 +25,7 @@ | |||
* page may be a further UX improvement. | |||
*/ | |||
html { | |||
width: 357px; | |||
width: 400px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating the inline CSS and ensuring there are no remaining instances of 357
that affect the width of the extension.
after.mov
<html style="width:400px; height:600px;" dir="ltr"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<title>MetaMask</title> | ||
<link rel="preload" href="/_locales/en/messages.json" as="fetch" crossorigin="anonymous" /> | ||
<link rel="stylesheet" href="../ui/css/index.scss" /> | ||
</head> | ||
<body style="width:357px; height:600px;"> | ||
<body style="width:400px; height:600px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating other instances of 357px
to 400px
in the inline CSS
@@ -86,7 +86,7 @@ const MODALS = { | |||
}, | |||
laptopModalStyle: { | |||
width: | |||
getEnvironmentType() === ENVIRONMENT_TYPE_POPUP ? '357px' : '449px', | |||
getEnvironmentType() === ENVIRONMENT_TYPE_POPUP ? '400px' : '449px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating modal CSS in the deprecated Modal component
@@ -8,7 +8,7 @@ const animationEventEmitter = new EventEmitter(); | |||
|
|||
const containerStyle = { | |||
height: '600px', | |||
width: '357px', | |||
width: '400px', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating other instances of 357px
that aren't part of the popup update. This one is in a Storybook story.
@@ -6,7 +6,7 @@ | |||
flex-direction: column; | |||
justify-content: flex-start; | |||
align-items: center; | |||
width: 357px; | |||
width: 400px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updating the unlock page CSS, although this shouldn't be necessary if the page is coded correctly. This will be removed in a future refactor of the unlock page during the onboarding redesign.
Builds ready [8c9dd7d]
UI Startup Metrics (1214 ± 62 ms)
Bundle size diffs
|
Description
This PR increases the default popup width of the MetaMask extension from
357px
to400px
in preparation for an upcoming change to increase the default font size from14px
to16px
.Related issues
Fixes: #31444
Manual testing steps
Screenshots/Recordings
Before
Width:
357px
After
Width:
400px
Pre-merge author checklist
Pre-merge reviewer checklist