fix: move view source from the reader toolbar into the more menu

This commit is contained in:
Linus Rath
2026-10-28 20:08:23 +01:00
parent 9aa132c02f
commit 14871f784d
-15
View File
@@ -78,7 +78,6 @@ import {
Minus,
ShieldCheck,
ShieldAlert,
Code,
Copy,
Brain,
Keyboard,
@@ -174,7 +173,6 @@ const TOOLBAR_PRIORITY_ACTIONS: Record<string, MessageActionKey> = {
'7': 'spam',
'8': 'read',
'9': 'print',
'10': 'view_source',
'11': 'extra:view_mode',
};
const NO_ACTION_KEYS: ReadonlySet<MessageActionKey> = new Set();
@@ -4408,19 +4406,6 @@ export function EmailViewer({
</Button>
)}
{/* View source - hidden on mobile, overflows to More menu */}
<Button
variant="ghost"
size="sm"
onClick={() => setShowSourceModal(true)}
data-overflow-item
data-overflow-priority="10"
className={cn("hidden sm:inline-flex h-8 gap-1.5", mvViewer && "order-8")}
title={t('view_source')}
>
<Code className="w-4 h-4" />
</Button>
{/* Dark/light mode toggle for HTML emails. Always mounted: `isHtml`
flips from false to true once the body arrives, and mounting the
button then changes the toolbar width and re-runs the overflow