From ca58b885cbca21845b24cc29eaca4fd2a7dfcad9 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Fri, 12 Jun 2026 23:22:37 -0400 Subject: [PATCH] Make chips look better --- web/src/components/Account.jsx | 111 +++++++++++++++++---------------- 1 file changed, 58 insertions(+), 53 deletions(-) diff --git a/web/src/components/Account.jsx b/web/src/components/Account.jsx index 0134224a..016d97e4 100644 --- a/web/src/components/Account.jsx +++ b/web/src/components/Account.jsx @@ -2,6 +2,7 @@ import * as React from "react"; import { useContext, useState } from "react"; import { Alert, + Box, CardActions, CardContent, Chip, @@ -463,43 +464,45 @@ const Emails = () => { return (
- {verifiedEmails.map((email) => ( - : undefined} - label={ - - {email.address} - - } - variant="outlined" - onClick={(ev) => openMenu(ev, email)} - onDelete={() => handleDelete(email.address)} - sx={email.primary ? { "& .MuiChip-icon": { color: "#fbc02d" } } : undefined} - /> - ))} - {pendingEmails.map((email) => ( - - - {email.address} ({t("account_basics_emails_unverified")}) - - - } - variant="outlined" - onClick={(ev) => openMenu(ev, email)} - onDelete={() => handleDelete(email.address)} - sx={{ opacity: 0.7 }} - /> - ))} - {verifiedEmails.length === 0 && pendingEmails.length === 0 && {t("account_basics_emails_no_emails_yet")}} - - - + + {verifiedEmails.map((email) => ( + : undefined} + label={ + + {email.address} + + } + variant="outlined" + onClick={(ev) => openMenu(ev, email)} + onDelete={() => handleDelete(email.address)} + sx={email.primary ? { "& .MuiChip-icon": { color: "#fbc02d" } } : undefined} + /> + ))} + {pendingEmails.map((email) => ( + + + {email.address} ({t("account_basics_emails_unverified")}) + + + } + variant="outlined" + onClick={(ev) => openMenu(ev, email)} + onDelete={() => handleDelete(email.address)} + sx={{ opacity: 0.7 }} + /> + ))} + {verifiedEmails.length === 0 && pendingEmails.length === 0 && {t("account_basics_emails_no_emails_yet")}} + + + + {showNoEmailWarning && ( {t("account_basics_emails_no_recovery_warning")} @@ -680,22 +683,24 @@ const PhoneNumbers = () => { return (
- {account?.phone_numbers?.map((phoneNumber) => ( - - {phoneNumber} - - } - variant="outlined" - onClick={() => handleCopy(phoneNumber)} - onDelete={() => handleDelete(phoneNumber)} - /> - ))} - {!account?.phone_numbers && {t("account_basics_phone_numbers_no_phone_numbers_yet")}} - - - + + {account?.phone_numbers?.map((phoneNumber) => ( + + {phoneNumber} + + } + variant="outlined" + onClick={() => handleCopy(phoneNumber)} + onDelete={() => handleDelete(phoneNumber)} + /> + ))} + {!account?.phone_numbers && {t("account_basics_phone_numbers_no_phone_numbers_yet")}} + + + +