Skip to content

Commit 0cc7b61

Browse files
committed
fix(web): keep error banners above the workspace panel
1 parent 454b94a commit 0cc7b61

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11355,7 +11355,7 @@ export default function ChatView(props: ChatViewProps) {
1135511355
</div>
1135611356
) : null}
1135711357
{/* Banners overlay the timeline without changing its content height. */}
11358-
<div className="chat-banner-lane pointer-events-none absolute top-0 z-20 flex flex-col">
11358+
<div className="chat-banner-lane pointer-events-none absolute top-0 z-(--z-chat-banner) flex flex-col">
1135911359
<ProviderStatusBanner
1136011360
status={visibleProviderStatus}
1136111361
onDismiss={() => setDismissedProviderStatusBannerKey(providerStatusBannerKey)}

‎apps/web/src/components/ui/popover.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function PopoverPopup({
7575
className={cn(
7676
"h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-transform data-instant:transition-none",
7777
variant === "panel"
78-
? "z-(--z-sheet) w-[min(var(--thread-details-panel-width),var(--anchor-width))] transition-none"
78+
? "z-(--z-floating-panel) w-[min(var(--thread-details-panel-width),var(--anchor-width))] transition-none"
7979
: "z-[130]",
8080
)}
8181
data-slot="popover-positioner"

‎apps/web/src/index.css‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
110110
--command-shell-inset: 0.5rem;
111111
--command-content-inset: 1rem;
112112
--floating-content-inset: 0.75rem;
113-
/* App layer order: docked sheets, then the floating preview player (47–49, see
114-
previewMiniPlayerLayout.ts), then dialogs and popovers (50 and up). */
113+
/* App layer order: the floating workspace panel, chat error banners, docked sheets, then the
114+
floating preview player (47–49, see previewMiniPlayerLayout.ts), then dialogs and popovers
115+
(50 and up). */
116+
--z-floating-panel: 44;
117+
--z-chat-banner: 45;
115118
--z-sheet: 46;
116119
--glass-blur: 12px;
117120
--glass-opacity: 80%;

0 commit comments

Comments
 (0)