diff --git a/apps/web/src/pages/mail.tsx b/apps/web/src/pages/mail.tsx index 03a815c..6863927 100644 --- a/apps/web/src/pages/mail.tsx +++ b/apps/web/src/pages/mail.tsx @@ -1822,6 +1822,7 @@ function SidebarContextMenu({ state, canOrganize, pending, onClose, onOpen, onRe const item = state.item const customFolder = item.type === "folder" && item.custom const position = contextMenuPosition(state.x, state.y) + const itemClass = "h-auto w-full justify-start rounded px-2 py-1.5 text-left font-normal" return (
event.preventDefault()} role="menu" > - - + + {canOrganize && ( - + )} {canOrganize && customFolder && ( <>
- - + - + - + +
- + )}
@@ -1889,14 +1890,14 @@ function MessageContextMenu({ state, labels, folders, canSend, canOrganize, canM const { message } = state const position = contextMenuPosition(state.x, state.y) const draft = message.folder === "Drafts" - const itemClass = "flex w-full items-center gap-2 rounded-sm px-3 py-2 text-left text-sm outline-none transition-colors hover:bg-accent focus:bg-accent disabled:pointer-events-none disabled:opacity-50" + const itemClass = "h-auto w-full justify-start rounded-sm px-3 py-2 text-left font-normal" function item(label: string, icon: React.ReactNode, action: Parameters[0], destructive = false) { return ( - + ) } function toggleLabel(label: MailLabel) { @@ -1941,11 +1942,11 @@ function MessageContextMenu({ state, labels, folders, canSend, canOrganize, canM
移动到
{movableFolders.map((folder) => ( - + ))}
@@ -1959,11 +1960,11 @@ function MessageContextMenu({ state, labels, folders, canSend, canOrganize, canM const active = (message.labels || []).some((item) => item.id === label.id) const colors = generateLabelColor(label.name) return ( - + ) })}