Fix collapsed home header chrome overlap (#1215)

Signed-off-by: Thomas Petersen <thomasp@squareup.com>
This commit is contained in:
thomaspblock
2026-06-23 13:45:57 -07:00
committed by GitHub
parent 2a522826ed
commit b4e75a1e41
3 changed files with 47 additions and 1 deletions
+10 -1
View File
@@ -16,6 +16,7 @@ import {
import { RemindersPanel } from "@/features/reminders/ui/RemindersPanel";
import { TopChromeInsetHeader } from "@/shared/layout/TopChromeInsetHeader";
import { cn } from "@/shared/lib/cn";
import { useOptionalSidebar } from "@/shared/ui/sidebar";
import {
ContextMenu,
ContextMenuContent,
@@ -131,6 +132,9 @@ export function InboxListPane({
reminderPubkey,
unreadOnly,
}: InboxListPaneProps) {
const sidebar = useOptionalSidebar();
const clearCollapsedTopChromeControls =
sidebar?.state === "collapsed" && !sidebar.isMobile;
const activeFilter = FILTER_OPTIONS.find((option) => option.value === filter);
const isReminders = filter === "reminders";
const scrollRef = React.useRef<HTMLDivElement>(null);
@@ -325,7 +329,12 @@ export function InboxListPane({
)}
>
<TopChromeInsetHeader flush>
<div className="px-3 py-1">
<div
className={cn(
"px-3 py-1 transition-[padding] duration-200 ease-linear",
clearCollapsedTopChromeControls && "pl-[168px]",
)}
>
<div className="flex w-full min-w-0 items-center justify-between gap-3">
<Popover>
<PopoverTrigger asChild>