Skip to content

Commit 0a9d409

Browse files
committed
fix(web): truncate thread titles before the workspace toggle
1 parent 00eb8f6 commit 0a9d409

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ChatHeader.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ export const ChatHeader = memo(function ChatHeader({
232232
<div
233233
className={cn(
234234
"flex min-w-0 flex-1 items-center gap-2 sm:gap-3",
235-
rightPanelOpen ? "pr-10" : "pr-24",
235+
// The details toggle keeps the native window-controls inset even when
236+
// the right panel owns the titlebar. Truncate before its actual position.
237+
rightPanelOpen ? "pr-(--workspace-thread-title-end-inset)" : "pr-24",
236238
)}
237239
onContextMenu={handleHeaderContextMenu}
238240
>

‎apps/web/src/index.css‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
114114
--workspace-controls-right: calc(env(safe-area-inset-right) + 0.75rem);
115115
--workspace-native-controls-inset: 0px;
116116
--workspace-titlebar-control-size: 1.75rem;
117+
--workspace-thread-title-end-inset: calc(
118+
var(--workspace-controls-right) + var(--workspace-titlebar-control-size)
119+
);
117120
--workspace-titlebar-control-gap: 0.75rem;
118121
--workspace-titlebar-scroll-fade-height: 1.5rem;
119122
--chat-content-max-width: 46rem;

0 commit comments

Comments
 (0)