Skip to content

Conversation

@n3ps
Copy link
Contributor

@n3ps n3ps commented Dec 3, 2025

Description

Fix layout inconsistencies in snaps pages in fullscreen and sidepanel

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: layout inconsistencies

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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.

Note

Switch snaps routes to RootLayout and update snaps list to full-height with simplified responsive styling.

  • Routes:
    • Switch SNAPS_ROUTE and SNAPS_VIEW_ROUTE to RootLayout (from LegacyLayout).
  • Snaps List UI:
    • Add h-full to container for full-height layout in snaps-list/snap-list.js.
    • Simplify responsive widths in snaps-list/index.scss by removing breakpoint-specific width overrides; keep full-width with overflow prevention.

Written by Cursor Bugbot for commit 307ee60. This will update automatically on new commits. Configure here.

@n3ps n3ps requested a review from a team as a code owner December 3, 2025 20:20
@n3ps n3ps added the team-core-extension-ux Core Extension UX team label Dec 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

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.

@metamaskbot
Copy link
Collaborator

metamaskbot commented Dec 3, 2025

✨ Files requiring CODEOWNER review ✨

🫰 @MetaMask/core-platform (2 files, +1 -16)
  • 📁 ui/
    • 📁 pages/
      • 📁 snaps/
        • 📁 snaps-list/
          • 📄 index.scss +0 -15
          • 📄 snap-list.js +1 -1

height: $height-screen-sm-max;
}

@include design-system.screen-sm-min {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let the layout handle widths

@github-actions github-actions bot added size-S and removed size-XS labels Dec 3, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [1bf6a99]
UI Startup Metrics (1283 ± 111 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12831083163811113561465
load1065880141010111271236
domContentLoaded1059875137810011211232
domInteractive2716161232387
firstPaint55885139743310711218
backgroundConnect22320227011228246
firstReactRender30196193255
getState3815159234390
initialActions1011112
loadScripts8416721153988971018
setupStore1162131219
numNetworkReqs1056616560
BrowserifyPower User HomeuiStartup19641652275321520922359
load1020885189514610611272
domContentLoaded1009877188814610471262
domInteractive32161192329104
firstPaint5059212793719271220
backgroundConnect260201775128224672
firstReactRender51408085568
getState18514027328203247
initialActions104112
loadScripts80167916711438421052
setupStore1674681639
numNetworkReqs77612212473143
WebpackStandard HomeuiStartup832708101972862996
load64357283665670797
domContentLoaded63956783065667792
domInteractive28151472524105
firstPaint20078837132192589
backgroundConnect11688111127
firstReactRender2920109133340
getState271167123650
initialActions104112
loadScripts63656582164665782
setupStore1162941221
numNetworkReqs1157017563
WebpackPower User HomeuiStartup16781289226026118802144
load7016031092104731947
domContentLoaded6935961085104721941
domInteractive35181362533104
firstPaint28787935194318723
backgroundConnect1168667195107573
firstReactRender6245116116584
getState17914327421191214
initialActions103112
loadScripts6905941074102719932
setupStore191093131752
numNetworkReqs78622162772151
FirefoxBrowserifyStandard HomeuiStartup13081067166213613931608
load107791313708911441224
domContentLoaded107691313699011441223
domInteractive56311452882113
firstPaint------
backgroundConnect47192053157116
firstReactRender23185562433
getState126137151021
initialActions103122
loadScripts104689812787611061167
setupStore165227271052
numNetworkReqs1256216662
BrowserifyPower User HomeuiStartup29691811476686938624477
load1331942257346213792390
domContentLoaded1330941257246213792390
domInteractive97324727397276
firstPaint------
backgroundConnect2932112203913321161
firstReactRender62362022974135
getState281831162256327887
initialActions207123
loadScripts1149928223222211911464
setupStore1346930203106652
numNetworkReqs76511332172125
WebpackStandard HomeuiStartup15431272201915616191875
load12701080164810513311465
domContentLoaded12701080164710513281465
domInteractive62272343784139
firstPaint------
backgroundConnect52202113652145
firstReactRender28216983039
getState167202251450
initialActions103122
loadScripts1240106615119613011419
setupStore14685131537
numNetworkReqs1256717764
WebpackPower User HomeuiStartup329620656705103941635180
load17241111502671623192734
domContentLoaded17241111502671623182734
domInteractive203303476503134977
firstPaint------
backgroundConnect2572213163482361131
firstReactRender66393344263175
getState308861349265415819
initialActions3079827
loadScripts15961093501066116152686
setupStore95579714097442
numNetworkReqs77581402171127
📊 Page Load Benchmark Results

Current Commit: 1bf6a99 | Date: 12/3/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±37ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 719ms (±35ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 37ms 1.01s 1.31s 1.05s 1.31s
domContentLoaded 719ms 35ms 694ms 979ms 736ms 979ms
firstPaint 76ms 12ms 56ms 176ms 88ms 176ms
firstContentfulPaint 76ms 12ms 56ms 176ms 88ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 3 Bytes (0%)
  • common: 20 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [307ee60]
UI Startup Metrics (1261 ± 103 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12611031165810313151419
load105089113889011001218
domContentLoaded104488613838910941207
domInteractive2915191282299
firstPaint50483139540410221167
backgroundConnect22220325912230246
firstReactRender311966103655
getState3616106154265
initialActions105112
loadScripts827675116888876989
setupStore1173041220
numNetworkReqs1057216559
BrowserifyPower User HomeuiStartup20531713269224722752542
load1050893162214810991402
domContentLoaded1038886161514810881395
domInteractive3517267353193
firstPaint5399814334029641241
backgroundConnect270202761133241636
firstReactRender52407675664
getState19714874479202304
initialActions104112
loadScripts82568713881418511179
setupStore1674151631
numNetworkReqs80642412875148
WebpackStandard HomeuiStartup804693105875827978
load62555683263642779
domContentLoaded62155082262638776
domInteractive2615103202290
firstPaint22882804154223632
backgroundConnect1065571326
firstReactRender27205663139
getState271398143550
initialActions102112
loadScripts61854881361636775
setupStore1163551221
numNetworkReqs1157117560
WebpackPower User HomeuiStartup15711222242224916832086
load674574118696697879
domContentLoaded666568117796686872
domInteractive33181532730119
firstPaint26592760172281653
backgroundConnect89760117437562
firstReactRender584697106476
getState18814272376187245
initialActions103112
loadScripts663566116294684864
setupStore1784481640
numNetworkReqs79632502974152
FirefoxBrowserifyStandard HomeuiStartup13511066187517714591694
load1111920153412811851387
domContentLoaded1111920153312811841387
domInteractive63302413886131
firstPaint------
backgroundConnect49211723263118
firstReactRender23183842434
getState13799161165
initialActions103122
loadScripts1080905148711511521359
setupStore135201211129
numNetworkReqs1256716762
BrowserifyPower User HomeuiStartup30291855495284638094700
load13841014276446713702604
domContentLoaded13831014276346713702597
domInteractive11733940116113320
firstPaint------
backgroundConnect2952916063883841203
firstReactRender66342693569134
getState328711130271447888
initialActions41741027
loadScripts1266995257634313092316
setupStore108577016494621
numNetworkReqs77511492471135
WebpackStandard HomeuiStartup14661248190313615471771
load1213106015199712891386
domContentLoaded1212106015199712881386
domInteractive57272823982114
firstPaint------
backgroundConnect44191412444110
firstReactRender27207793039
getState146192211244
initialActions103012
loadScripts1188104314939112631338
setupStore136140171135
numNetworkReqs1256517762
WebpackPower User HomeuiStartup32652311602989241274852
load16521179301452721442767
domContentLoaded16511178301452721432766
domInteractive123321164193100366
firstPaint------
backgroundConnect2782912343642921177
firstReactRender72392444072184
getState353811101294560942
initialActions31771023
loadScripts15041147287340815642452
setupStore14441155217132717
numNetworkReqs78601462273124
📊 Page Load Benchmark Results

Current Commit: 307ee60 | Date: 12/4/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±45ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 719ms (±65ms) 🟢 | historical mean value: 727ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 88ms (±131ms) 🟢 | historical mean value: 80ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 45ms 1.00s 1.39s 1.05s 1.39s
domContentLoaded 719ms 65ms 696ms 1.32s 734ms 1.32s
firstPaint 88ms 131ms 60ms 1.39s 88ms 1.39s
firstContentfulPaint 88ms 131ms 60ms 1.39s 88ms 1.39s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 3 Bytes (0%)
  • common: 20 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-S team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants