diff --git a/.github/release-notes/v1.2.10.md b/.github/release-notes/v1.2.10.md new file mode 100644 index 0000000..1aeb259 --- /dev/null +++ b/.github/release-notes/v1.2.10.md @@ -0,0 +1,13 @@ +## 本次更新 + +### 优化邮箱选择器动态宽度 + +- 选择“全部邮箱”、正在加载或尚未注册邮箱时,邮箱选择框占满侧栏整行,不再为隐藏按钮预留空白。 +- 选择具体邮箱后,选择框自动向左收窄,并在右侧显示复制邮箱地址按钮。 +- 邮箱下拉菜单始终与当前选择框等宽,避免展开前后宽度不一致。 + +### 验证 + +- 已通过前端 TypeScript 检查、生产构建和 shadcn/ui 检查。 + +**完整更新日志**:[v1.2.9...v1.2.10](https://github.com/zxyszx/NewSzxcn-Email/compare/v1.2.9...v1.2.10) diff --git a/VERSION b/VERSION index 9d4f823..963ed7c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.9 +1.2.10 diff --git a/apps/web/src/pages/mail.tsx b/apps/web/src/pages/mail.tsx index bf1e5b9..b58466f 100644 --- a/apps/web/src/pages/mail.tsx +++ b/apps/web/src/pages/mail.tsx @@ -205,6 +205,7 @@ export function MailPage() { const activeMailboxId = selectedMailboxId === "all" ? "all" : selectedMailbox?.id || "" const selectedComposeMailbox = selectedMailbox || (isAllMailboxSelected ? mailboxList.data?.items?.[0] : undefined) const hasMailboxes = (mailboxList.data?.items.length || 0) > 0 + const showMailboxCopy = !!selectedMailbox && !isAllMailboxSelected const folders = useQuery({ queryKey: ["folders", activeMailboxId], queryFn: () => api.folders(activeMailboxId), enabled: !!activeMailboxId && canReadMail }) const labels = useQuery({ queryKey: ["labels", activeMailboxId], queryFn: () => api.labels(activeMailboxId), enabled: !!activeMailboxId && (canReadMail || canManageLabels) }) const mailStats = useQuery({ queryKey: ["mail-stats", activeMailboxId], queryFn: () => api.mailStats(activeMailboxId), enabled: !!activeMailboxId && hasPermission(user, "mail.stats.view") }) @@ -1216,7 +1217,7 @@ export function MailPage() { onLanguageChange={setLanguage} onSettings={openSettings} /> -
+
- {!sidebarCollapsed && ( + {!sidebarCollapsed && showMailboxCopy && (