Skip to content

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

georgewrmarshall
Copy link
Contributor

@georgewrmarshall georgewrmarshall commented Mar 31, 2025

Description

This PR increases the default popup width of the MetaMask extension from 357px to 400px in preparation for an upcoming change to increase the default font size from 14px to 16px.

Related issues

Fixes: #31444

Manual testing steps

  1. Install the extension with these changes
  2. Open the MetaMask popup
  3. Verify the popup width is 400px and content displays correctly
  4. Test various screens and modals to ensure proper layout
  5. Confirm no horizontal scrollbars appear in common workflows

Screenshots/Recordings

Before

Width: 357px

Screenshot 2025-03-31 at 10 19 26 AM

After

Width: 400px

Screenshot 2025-03-31 at 10 17 55 AM

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed)
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots

@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label Mar 31, 2025
@georgewrmarshall georgewrmarshall self-assigned this Mar 31, 2025
Copy link
Contributor

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;
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Mar 31, 2025

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

Comment on lines +2 to +10
<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;">
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Mar 31, 2025

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',
Copy link
Contributor Author

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',
Copy link
Contributor Author

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;
Copy link
Contributor Author

@georgewrmarshall georgewrmarshall Mar 31, 2025

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.

@georgewrmarshall georgewrmarshall marked this pull request as ready for review March 31, 2025 19:25
@georgewrmarshall georgewrmarshall requested review from a team March 31, 2025 19:25
@metamaskbot
Copy link
Collaborator

Builds ready [8c9dd7d]
UI Startup Metrics (1214 ± 62 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1214109814206212491373
load10509521207541191990
domContentLoaded10449451203541195986
domInteractive17133951629
firstPaint7191341192405251990
backgroundConnect107545910
firstReactRender2215134132039
getState12532779
initialActions001000
loadScripts82572597852857938
setupStore8536479
WebpackHomeuiStartup1003704145197987997
load854528126777877941
domContentLoaded847523126377868929
domInteractive16134171438
firstPaint533681267360862908
backgroundConnect17124371638
firstReactRender15123551429
getState7413179
initialActions001000
loadScripts845522125276867919
setupStore8523289
FirefoxBrowserifyHomeuiStartup13831183198415414321783
load12441065183714612851599
domContentLoaded12441065183614612851598
domInteractive9739204269095
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23165762433
firstReactRender22184032327
getState6418278
initialActions002001
loadScripts12221047181414512621575
setupStore7438467
WebpackHomeuiStartup9768201521170883972
load8577201384150787896
domContentLoaded8567201384150787896
domInteractive115501882316798
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect191395102033
firstReactRender18152421822
getState104951579
initialActions001001
loadScripts8407081367146774890
setupStore8558778
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)

@georgewrmarshall georgewrmarshall added this pull request to the merge queue Mar 31, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 31, 2025
@georgewrmarshall georgewrmarshall added this pull request to the merge queue Apr 1, 2025
Merged via the queue into main with commit 2524890 Apr 1, 2025
160 checks passed
@georgewrmarshall georgewrmarshall deleted the fix/popup-size branch April 1, 2025 18:25
@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2025
@metamaskbot metamaskbot added the release-12.17.0 Issue or pull request that will be included in release 12.17.0 label Apr 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.17.0 Issue or pull request that will be included in release 12.17.0 team-design-system All issues relating to design system in Extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase width of extension popup to 400px
4 participants