From 1cc451c7dd29072e7405aeb4ed8b0885d07575ac Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 22 Feb 2024 10:01:10 -0600 Subject: [PATCH 1/2] Fix #23095 - Fix long account name ellipsizing (#23096) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## **Description** Fixes long account name ellipsizing in the header's AccountPicker. [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/23096?quickstart=1) ## **Related issues** Fixes: #23095 23095 ## **Manual testing steps** 1. Create a long account name 2. See it ellipsized ## **Screenshots/Recordings** ### **Before** ![Screenshot 2024-02-21 at 16 06 43](https://github.com/MetaMask/metamask-extension/assets/46655/06e49f01-5b66-4da4-9878-c8cc678beae8) ### **After** SCR-20240221-kvri ## **Pre-merge author checklist** - [ ] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've clearly explained what problem this PR is solving and how it is solved. - [ ] I've linked related issues - [ ] I've included manual testing steps - [ ] I've included screenshots/recordings if applicable - [ ] I’ve included tests if applicable - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] I’ve properly set the pull request status: - [ ] In case it's not yet "ready for review", I've set it to "draft". - [ ] In case it's "ready for review", I've changed it from "draft" to "non-draft". ## **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. --- .../app-header/__snapshots__/app-header.test.js.snap | 2 +- ui/components/multichain/app-header/app-header.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/components/multichain/app-header/__snapshots__/app-header.test.js.snap b/ui/components/multichain/app-header/__snapshots__/app-header.test.js.snap index 395c5765dbbf..5bafc35a2208 100644 --- a/ui/components/multichain/app-header/__snapshots__/app-header.test.js.snap +++ b/ui/components/multichain/app-header/__snapshots__/app-header.test.js.snap @@ -228,7 +228,7 @@ exports[`App Header should match snapshot 1`] = `