fix: align account selector header height with search/reply toolbars

This commit is contained in:
Linus Rath
2026-06-02 01:19:37 +02:00
parent 8f7066d194
commit 9953557af0
+5 -1
View File
@@ -942,7 +942,10 @@ export function Sidebar({
{/* Header - hidden in the Pro shell, which owns its own chrome and
would otherwise render an empty strip (no collapse, no switcher). */}
{!isEmbedded && (
<div className={cn("flex items-center border-b border-border h-14", isCollapsed ? "justify-center px-2" : "gap-1 px-2")}>
// Border lives on the wrapper (outside the h-14 box) so the bar's total
// height matches the search/reply toolbars, which border-b their wrapper too.
<div className="border-b border-border">
<div className={cn("flex items-center h-14", isCollapsed ? "justify-center px-2" : "gap-1 px-2")}>
<Button
variant="ghost"
size="icon"
@@ -967,6 +970,7 @@ export function Sidebar({
<AccountSwitcher variant="expanded" className="flex-1" />
)}
</div>
</div>
)}
{!isCollapsed && <DemoBanner />}