From 139606842de2009cfd9fd169e6d05865136b8151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= <16311043+immakermatty@users.noreply.github.com> Date: Sun, 22 Nov 2026 08:56:32 +0000 Subject: [PATCH] =?UTF-8?q?fix(lazurio):=20Buddy's=20header=20icons=20sit?= =?UTF-8?q?=20at=20one=20height,=20and=20"Zp=C4=9Bt=20k=20rozhovoru"=20has?= =?UTF-8?q?=20its=20own=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit T3's panel controls sit fixed at the window's top in a 52 px row, while Buddy's header is 48 px with a bottom border, so the controls sat 2.5 px lower than Buddy's own buttons; on a phone the gap shows. Buddy's surface now moves only that row up to the header's centre line (--workspace-controls-top), so no other row of the chat changes height. "Zpět k rozhovoru" used Minimize2, the same icon as the window's "Zmenšit do panelu" beside it. It now shows a speech bubble, the conversation it returns to; the inward arrows stay for the window's size. Fixes #247. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/lazurio/BuddySurface.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/web/src/lazurio/BuddySurface.tsx b/apps/web/src/lazurio/BuddySurface.tsx index c649998fb517b..2bfa4bb4e2509 100644 --- a/apps/web/src/lazurio/BuddySurface.tsx +++ b/apps/web/src/lazurio/BuddySurface.tsx @@ -8,7 +8,7 @@ import type { LegendListRef } from "@legendapp/list/react"; import { useAtomValue } from "@effect/atom-react"; import type { RuntimeMode } from "@t3tools/contracts"; import { useNavigate } from "@tanstack/react-router"; -import { CalendarDays, CircleAlert, Maximize2, Minimize2, X } from "lucide-react"; +import { CalendarDays, CircleAlert, Maximize2, MessageSquare, Minimize2, X } from "lucide-react"; import { type ComponentProps, type CSSProperties, @@ -140,7 +140,7 @@ export function BuddyBackToConversation(props: { title={props.label} variant="ghost" > - + ); } @@ -800,7 +800,7 @@ export function BuddySurfaceLayout({ children }: { readonly children: ReactNode const { framed } = useBuddyFrame(true); // T3's thread controls sit fixed at the window's top right, in Buddy's header: they move left of // Buddy's own buttons there (an icon-sm button and the header's gap each), and the open day sheet - // covers them. + // covers them. Their row moves up to the header's centre line, so both sets sit at one height. const ownControls = (roomForDays ? 0 : 1) + (framed ? 2 : 0); const [daysOpen, setDaysOpen] = useState(false); return ( @@ -808,7 +808,13 @@ export function BuddySurfaceLayout({ children }: { readonly children: ReactNode className="flex h-dvh w-full min-w-0 flex-col bg-background [--workspace-controls-right:calc(env(safe-area-inset-right)+0.75rem+var(--buddy-own-controls)*2.5rem)] sm:[--workspace-controls-right:calc(env(safe-area-inset-right)+0.75rem+var(--buddy-own-controls)*2.25rem)] [&[data-buddy-days-open]_[data-workspace-titlebar-controls]]:hidden" data-buddy-days-open={daysOpen && !roomForDays ? "" : undefined} data-lazurio-buddy-surface - style={{ "--buddy-own-controls": ownControls } as CSSProperties} + style={ + { + "--buddy-own-controls": ownControls, + // Centred on the header's content box: h-12 less its bottom border. + "--workspace-controls-top": "calc((3rem - 1px - var(--workspace-topbar-height)) / 2)", + } as CSSProperties + } >