fix: give the calendar, contacts, files and settings sidebar headers the mail header's height

This commit is contained in:
Linus Rath
2026-10-19 20:59:44 +02:00
parent 39857a4dac
commit fdf448d0b7
4 changed files with 19 additions and 19 deletions
@@ -18,10 +18,8 @@ export function CalendarSidebarHeader({ onCreateEvent, tourTarget = true }: Cale
const t = useTranslations("calendar");
return (
<div
className="px-3 border-b border-border flex items-center justify-between flex-shrink-0"
style={{ paddingBlock: "var(--density-header-py)" }}
>
// Same h-14 box as the mail sidebar's account switcher, so the apps line up.
<div className="px-3 h-14 border-b border-border flex items-center justify-between flex-shrink-0">
<span className="text-sm font-semibold truncate">{t("title")}</span>
<Button
size="icon"
+2 -1
View File
@@ -275,7 +275,8 @@ export function ContactsSidebar({
return (
<div className={cn("flex flex-col h-full bg-secondary", className)}>
{/* Header */}
<div className="px-3 border-b border-border flex items-center justify-between" style={{ paddingBlock: 'var(--density-header-py)' }}>
{/* Same h-14 box as the mail sidebar's account switcher, so the apps line up. */}
<div className="px-3 h-14 border-b border-border flex items-center justify-between flex-shrink-0">
<span className="text-sm font-semibold truncate">{t("title")}</span>
<div className="relative flex-shrink-0">
<Button
+2 -4
View File
@@ -258,10 +258,8 @@ export function FilesSidebar({
return (
<div className="flex flex-col h-full bg-secondary">
<div
className="px-3 border-b border-border flex items-center justify-between flex-shrink-0"
style={{ paddingBlock: "var(--density-header-py)" }}
>
{/* Same h-14 box as the mail sidebar's account switcher, so the apps line up. */}
<div className="px-3 h-14 border-b border-border flex items-center justify-between flex-shrink-0">
<span className="text-sm font-semibold truncate">{t("title")}</span>
{canCreate && (
<Button
+13 -10
View File
@@ -1025,16 +1025,19 @@ export function SettingsApp({ linkSegments: routeSegments }: SettingsAppProps =
style={{ width: `${settingsSidebarWidth}px` }}
>
{!proInterface && (
<div className="p-4 border-b border-border">
<Button
variant="ghost"
size="sm"
onClick={() => router.push('/')}
className="w-full justify-start"
>
<ArrowLeft className="w-4 h-4 me-2" />
{t('back_to_mail')}
</Button>
// Same h-14 box as the mail sidebar's account switcher, so the apps line up.
<div className="border-b border-border">
<div className="flex items-center h-14 px-2">
<Button
variant="ghost"
size="sm"
onClick={() => router.push('/')}
className="w-full justify-start"
>
<ArrowLeft className="w-4 h-4 me-2" />
{t('back_to_mail')}
</Button>
</div>
</div>
)}