feat: add options to hide account switcher and show account avatars on navigation rail

This commit is contained in:
Linus Rath
2026-03-28 15:20:25 +01:00
parent e49f7c1a75
commit 9140110435
5 changed files with 158 additions and 4 deletions
+2 -1
View File
@@ -438,6 +438,7 @@ export function Sidebar({
} catch { return true; }
});
const emailKeywords = useSettingsStore(s => s.emailKeywords);
const hideAccountSwitcher = useSettingsStore(s => s.hideAccountSwitcher);
const tagCounts = useEmailStore(s => s.tagCounts);
const t = useTranslations('sidebar');
@@ -539,7 +540,7 @@ export function Sidebar({
{isCollapsed ? <ChevronsRight className="w-4 h-4" /> : <ChevronsLeft className="w-4 h-4" />}
</Button>
{!isCollapsed && (
{!isCollapsed && !hideAccountSwitcher && (
<AccountSwitcher variant="expanded" className="flex-1" />
)}
</div>