mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
fix(desktop): keep channel chrome clear of window controls (#1159)
Signed-off-by: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf <95cae996907d7cab9f5dbf43c0f53edeac6ab0b032a6feae4abfd784e467b3f5@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
co-authored by
npub1jh9wn95s0472h86ahapupaf7m6kx4v9sx2n0atj2hltcfer8k06s5n3pyf
parent
5f79830e19
commit
fa10871df6
@@ -15,6 +15,7 @@ import type { ChannelType, ChannelVisibility } from "@/shared/api/types";
|
||||
import { UpdateIndicator } from "@/features/settings/UpdateIndicator";
|
||||
import { cn } from "@/shared/lib/cn";
|
||||
import { channelChrome } from "@/shared/layout/chromeLayout";
|
||||
import { useOptionalSidebar } from "@/shared/ui/sidebar";
|
||||
|
||||
type ChatHeaderProps = {
|
||||
actions?: React.ReactNode;
|
||||
@@ -94,6 +95,9 @@ export function ChatHeader({
|
||||
statusBadge,
|
||||
}: ChatHeaderProps) {
|
||||
const trimmedDescription = description?.trim() ?? "";
|
||||
const sidebar = useOptionalSidebar();
|
||||
const clearCollapsedTopChromeControls =
|
||||
belowSystemChrome && sidebar?.state === "collapsed" && !sidebar.isMobile;
|
||||
|
||||
const header = (
|
||||
<header
|
||||
@@ -105,6 +109,7 @@ export function ChatHeader({
|
||||
: "min-h-8 py-0"
|
||||
: "min-h-11 py-1.5",
|
||||
overlaysContent && !belowSystemChrome && "-mb-11",
|
||||
clearCollapsedTopChromeControls && "pl-[176px]",
|
||||
)}
|
||||
data-testid="chat-header"
|
||||
data-tauri-drag-region
|
||||
|
||||
@@ -361,7 +361,7 @@ const MessageTimelineBase = React.forwardRef<
|
||||
) : null}
|
||||
<div
|
||||
className={cn(
|
||||
"absolute inset-0 overflow-y-auto overflow-x-hidden overscroll-contain px-2 pt-1 [overflow-anchor:none]",
|
||||
"absolute inset-0 overflow-y-auto overflow-x-hidden overscroll-none px-2 pt-1 [overflow-anchor:none]",
|
||||
hasComposerOverlay ? "pb-24" : "pb-4",
|
||||
)}
|
||||
data-scroll-restoration-id={scrollRestorationId}
|
||||
|
||||
Reference in New Issue
Block a user