Skip to content

fix: Adjusted size and padding for sidebar width#40988

Merged
Montoya merged 2 commits intomainfrom
GE-154-adjust-sidebar-banners
Mar 19, 2026
Merged

fix: Adjusted size and padding for sidebar width#40988
Montoya merged 2 commits intomainfrom
GE-154-adjust-sidebar-banners

Conversation

@Montoya
Copy link
Contributor

@Montoya Montoya commented Mar 17, 2026

Description

Sidebar is more narrow than popup, causing banner content to get truncated even when the content is within our length limit.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Fixed banner display in sidebar view

Related issues

Fixes: #40978

Manual testing steps

  1. Open extension in sidebar
  2. Observe banner

Screenshots/Recordings

Before

banner-sidebar

After

updated-banner

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

Low Risk
Low risk visual-only changes that adjust spacing and typography to fit carousel banner content in the sidebar without affecting behavior or data handling.

Overview
Improves sidebar rendering of the multichain carousel banner by tightening the card layout.

Reduces .carousel-card horizontal padding and inter-element gap, and downgrades title/description TextVariants in StackCard to smaller sizes so content fits within the narrower sidebar width.

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

@Montoya Montoya requested a review from a team as a code owner March 17, 2026 21:27
@github-actions
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.

@metamaskbot metamaskbot added the team-rewards Rewards team label Mar 17, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 17, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (2 files, +4 -5)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 carousel/
          • 📁 stack-card/
            • 📄 stack-card.tsx +2 -2
            • 📄 index.scss +2 -3

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 17, 2026

Builds ready [f96a746]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account367271499105492499
total367271499105492499
Confirm Txconfirm_tx5984595660152159836015
total5984595660152159836015
Bridge User Actionsbridge_load_page20719322815223228
bridge_load_asset_picker2552442699259269
bridge_search_token7587487708761770
total1220119212461812321246
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14391224203712114691635
load1191997172510712201358
domContentLoaded1184993169110412121345
domInteractive2915160232588
firstPaint1386646680191261
backgroundConnect21019428614210245
firstReactRender20124662232
initialActions1010225
loadScripts988794148410110231149
setupStore1473261729
numNetworkReqs393181153479
Power User HomeuiStartup5429225917596256563428273
load13221132338724913431614
domContentLoaded13001121338124513071588
domInteractive3719266373195
firstPaint2038053391273340
backgroundConnect228730414480236335764940
firstReactRender24174052633
initialActions104112
loadScripts1078916314824010821340
setupStore197311301831
numNetworkReqs1456928236153239
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202172232222223
srpButtonToSrpForm93869749797
confirmSrpToPwForm23222512225
pwFormToMetricsScreen15151601616
metricsToWalletReadyScreen16151711617
doneButtonToHomeScreen60358063620603636
openAccountMenuToAccountListLoaded2918289429411729192941
total389038873895438953895
Onboarding New WalletcreateWalletToSocialScreen2202192211220221
srpButtonToPwForm1111081142112114
createPwToRecoveryScreen989099
skipBackupToMetricsScreen41394314243
agreeButtonToOnboardingSuccess17161701717
doneButtonToAssetList537310679133656679
total934705107813410541078
Asset DetailsassetClickToPriceChart80718558485
total80718558485
Solana Asset DetailsassetClickToPriceChart68401273485127
total68401273485127
Import Srp HomeloginToHomeScreen2328229823602523602360
openAccountMenuAfterLogin624375137475
homeAfterImportWithNewWallet1492603239982722322399
total40593088480069746354800
Send TransactionsopenSendPageFromHome23172952629
selectTokenToSendFormLoaded29243543335
reviewTransactionToConfirmationPage1289938152724715121527
total1349995159424915831594
SwapopenSwapPageFromHome1381371391139139
fetchAndDisplaySwapQuotes2701268327261527062726
total2832279328652428432865
🌐 Dapp Page Load Benchmarks

Current Commit: f96a746 | Date: 3/17/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±39ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 726ms (±38ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±10ms) 🟢 | historical mean value: 88ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 39ms 1.01s 1.33s 1.06s 1.33s
domContentLoaded 726ms 38ms 703ms 1.01s 752ms 1.01s
firstPaint 79ms 10ms 64ms 152ms 88ms 152ms
firstContentfulPaint 79ms 10ms 64ms 152ms 88ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 5 Bytes (0%)
  • common: 20 Bytes (0%)

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Mar 18, 2026

Builds ready [4bc051a]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account30327435128318351
total30327435128318351
Confirm Txconfirm_tx602860176036760316036
total602860176036760316036
Bridge User Actionsbridge_load_page24521726719257267
bridge_load_asset_picker16315018815157188
bridge_search_token70969672812707728
total1117109311512111121151
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14501227198611114961618
load12011008171710012401359
domContentLoaded1194100116709812351352
domInteractive2915124202582
firstPaint162661685171207292
backgroundConnect21519525011221237
firstReactRender20145262033
initialActions105124
loadScripts99480614639610291140
setupStore1272851521
numNetworkReqs393184164079
Power User HomeuiStartup5497232415450228063918750
load13401177185613413641656
domContentLoaded13191170183613213431638
domInteractive40192363735129
firstPaint2158652592288352
backgroundConnect186735611768213029145112
firstReactRender25175662630
initialActions104113
loadScripts1089945154812411041383
setupStore1664671931
numNetworkReqs21011434052227318
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202182242222224
srpButtonToSrpForm92889639396
confirmSrpToPwForm22212202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen61860163813616638
openAccountMenuToAccountListLoaded2918289829401629332940
total3902388139231639103923
Onboarding New WalletcreateWalletToSocialScreen2232222230223223
srpButtonToPwForm1141141140114114
createPwToRecoveryScreen999099
skipBackupToMetricsScreen42394424344
agreeButtonToOnboardingSuccess17171701717
doneButtonToAssetList53251454510538545
total93591695012944950
Asset DetailsassetClickToPriceChart64451082474108
total64451082474108
Solana Asset DetailsassetClickToPriceChart954314741123147
total954314741123147
Import Srp HomeloginToHomeScreen23352180249610323802496
openAccountMenuAfterLogin71677637276
homeAfterImportWithNewWallet1663632237678223072376
total40733088466970246304669
Send TransactionsopenSendPageFromHome29243343233
selectTokenToSendFormLoaded34254063740
reviewTransactionToConfirmationPage1102875144624313421446
total1170936150923814041509
SwapopenSwapPageFromHome913214139125141
fetchAndDisplaySwapQuotes2702268727141027082714
total2781273128123128032812
🌐 Dapp Page Load Benchmarks

Current Commit: 4bc051a | Date: 3/18/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±50ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 735ms (±63ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 93ms (±131ms) 🟢 | historical mean value: 87ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 50ms 1.02s 1.47s 1.07s 1.47s
domContentLoaded 735ms 63ms 712ms 1.31s 748ms 1.31s
firstPaint 93ms 131ms 64ms 1.40s 96ms 1.40s
firstContentfulPaint 93ms 131ms 64ms 1.40s 96ms 1.40s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 5 Bytes (0%)
  • common: 13.9 KiB (0.12%)

@Montoya Montoya enabled auto-merge March 18, 2026 19:35
@Montoya Montoya added this pull request to the merge queue Mar 19, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 19, 2026
@Montoya Montoya added this pull request to the merge queue Mar 19, 2026
Merged via the queue into main with commit dce13ca Mar 19, 2026
190 of 191 checks passed
@Montoya Montoya deleted the GE-154-adjust-sidebar-banners branch March 19, 2026 15:51
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2026
@metamaskbot metamaskbot added the release-13.24.0 Issue or pull request that will be included in release 13.24.0 label Mar 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.24.0 Issue or pull request that will be included in release 13.24.0 size-XS team-engagement team-rewards Rewards team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Banner content is truncated in Sidebar

4 participants