diff --git a/client/electron/src/components/MailView.tsx b/client/electron/src/components/MailView.tsx index dac4bee..0299a0e 100644 --- a/client/electron/src/components/MailView.tsx +++ b/client/electron/src/components/MailView.tsx @@ -447,6 +447,7 @@ function Header({ onThread: () => void; }) { const time = new Date(mail.created_at).toLocaleString('zh-CN'); + const narrow = useIsNarrow(); // 发件/收件行显示**各方在这条会话里的完整地址**,人与 Agent 带的段数不同: // @@ -888,6 +889,11 @@ function ReplyBar({ if (!replyTo) return null; + // 判据是「当前登录用户名」而不是字面量 'human':后者是单用户时代的遗留, + // 多用户下登录名可能是 jianf,判据恒为假 → 对端取成自己 → 信发给自己。 + const peer = mailCounterpart(replyTo, me); + const target = overrideTarget || mailReplyTarget(replyTo, me); + // 窄屏收起态:一个悬浮球,点开才出现输入区。 // // 窄屏上「顶部邮件信息 + 底部输入框」同时常驻会把可读区压成一条缝(用户实测反馈)。 @@ -908,11 +914,6 @@ function ReplyBar({ ); } - // 判据是「当前登录用户名」而不是字面量 'human':后者是单用户时代的遗留, - // 多用户下登录名可能是 jianf,判据恒为假 → 对端取成自己 → 信发给自己。 - const peer = mailCounterpart(replyTo, me); - const target = overrideTarget || mailReplyTarget(replyTo, me); - const send = async () => { if (!body.trim()) return; setBusy(true); diff --git a/client/electron/src/components/NarrowNav.tsx b/client/electron/src/components/NarrowNav.tsx index 1b17961..b0db748 100644 --- a/client/electron/src/components/NarrowNav.tsx +++ b/client/electron/src/components/NarrowNav.tsx @@ -79,9 +79,8 @@ export default function NarrowNav() { @@ -98,11 +98,8 @@ export default function Sidebar() { key={short} onClick={() => setViewMode(target || commTab || modes[0])} title={title} - className={`relative w-12 h-12 rounded-lg flex flex-col items-center justify-center gap-0.5 transition-colors ${ - active - ? 'bg-chrome-700 text-white' - : 'text-chrome-400 hover:bg-chrome-800 hover:text-chrome-100' - }`} + data-active={active} + className="nav-item relative w-12 h-12 rounded-lg flex flex-col items-center justify-center gap-0.5" > {short} @@ -135,11 +132,8 @@ export default function Sidebar() {