mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-17 17:07:53 +00:00
Make chips look better
This commit is contained in:
@@ -2,6 +2,7 @@ import * as React from "react";
|
|||||||
import { useContext, useState } from "react";
|
import { useContext, useState } from "react";
|
||||||
import {
|
import {
|
||||||
Alert,
|
Alert,
|
||||||
|
Box,
|
||||||
CardActions,
|
CardActions,
|
||||||
CardContent,
|
CardContent,
|
||||||
Chip,
|
Chip,
|
||||||
@@ -463,6 +464,7 @@ const Emails = () => {
|
|||||||
return (
|
return (
|
||||||
<Pref labelId={labelId} alignTop title={t("account_basics_emails_title")} description={t("account_basics_emails_description")}>
|
<Pref labelId={labelId} alignTop title={t("account_basics_emails_title")} description={t("account_basics_emails_description")}>
|
||||||
<div aria-labelledby={labelId}>
|
<div aria-labelledby={labelId}>
|
||||||
|
<Box sx={{ display: "flex", flexWrap: "wrap", alignItems: "center", gap: 0.75 }}>
|
||||||
{verifiedEmails.map((email) => (
|
{verifiedEmails.map((email) => (
|
||||||
<Chip
|
<Chip
|
||||||
key={email.address}
|
key={email.address}
|
||||||
@@ -500,6 +502,7 @@ const Emails = () => {
|
|||||||
<IconButton onClick={handleDialogOpen} aria-label={t("account_basics_emails_dialog_title")}>
|
<IconButton onClick={handleDialogOpen} aria-label={t("account_basics_emails_dialog_title")}>
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
</Box>
|
||||||
{showNoEmailWarning && (
|
{showNoEmailWarning && (
|
||||||
<Alert severity="warning" sx={{ mt: 1 }}>
|
<Alert severity="warning" sx={{ mt: 1 }}>
|
||||||
{t("account_basics_emails_no_recovery_warning")}
|
{t("account_basics_emails_no_recovery_warning")}
|
||||||
@@ -680,6 +683,7 @@ const PhoneNumbers = () => {
|
|||||||
return (
|
return (
|
||||||
<Pref labelId={labelId} title={t("account_basics_phone_numbers_title")} description={t("account_basics_phone_numbers_description")}>
|
<Pref labelId={labelId} title={t("account_basics_phone_numbers_title")} description={t("account_basics_phone_numbers_description")}>
|
||||||
<div aria-labelledby={labelId}>
|
<div aria-labelledby={labelId}>
|
||||||
|
<Box sx={{ display: "flex", flexWrap: "wrap", alignItems: "center", gap: 0.75 }}>
|
||||||
{account?.phone_numbers?.map((phoneNumber) => (
|
{account?.phone_numbers?.map((phoneNumber) => (
|
||||||
<Chip
|
<Chip
|
||||||
label={
|
label={
|
||||||
@@ -696,6 +700,7 @@ const PhoneNumbers = () => {
|
|||||||
<IconButton onClick={handleDialogOpen}>
|
<IconButton onClick={handleDialogOpen}>
|
||||||
<AddIcon />
|
<AddIcon />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
<AddPhoneNumberDialog key={`addPhoneNumberDialog${dialogKey}`} open={dialogOpen} onClose={handleDialogClose} />
|
<AddPhoneNumberDialog key={`addPhoneNumberDialog${dialogKey}`} open={dialogOpen} onClose={handleDialogClose} />
|
||||||
<Portal>
|
<Portal>
|
||||||
|
|||||||
Reference in New Issue
Block a user