Skip to content

Commit 8a0b733

Browse files
committed
fix(web): keep chat banners inside the lane beside the docked details card
The error and provider-status banners were centered on the full canvas, so a docked thread details card covered the dismiss control. The banner wrapper now reads the same chat-lane insets as the scroll-to-bottom control.
1 parent 73e097b commit 8a0b733

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/web/src/components/ChatView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11252,7 +11252,7 @@ export default function ChatView(props: ChatViewProps) {
1125211252
</div>
1125311253
) : null}
1125411254
{/* Banners overlay the timeline without changing its content height. */}
11255-
<div className="pointer-events-none absolute inset-x-0 top-0 z-20 flex flex-col">
11255+
<div className="chat-banner-lane pointer-events-none absolute top-0 z-20 flex flex-col">
1125611256
<ProviderStatusBanner
1125711257
status={visibleProviderStatus}
1125811258
onDismiss={() => setDismissedProviderStatusBannerKey(providerStatusBannerKey)}

‎apps/web/src/index.css‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,8 @@ code {
23182318
0.75rem + var(--chat-lane-inset-end, 0px) - var(--chat-timeline-gutter, 0px)
23192319
);
23202320
}
2321-
.chat-scroll-to-bottom {
2321+
.chat-scroll-to-bottom,
2322+
.chat-banner-lane {
23222323
inset-inline-start: var(--chat-lane-inset-start, 0px);
23232324
inset-inline-end: var(--chat-lane-inset-end, 0px);
23242325
}

0 commit comments

Comments
 (0)