fix(web): thread error banner no longer shifts the chat (#9473)
This commit is contained in:
1 parent
f239b77df9
commit
3e2c1a66f7
2 files changed
+17
-12
No files matched your search
@@ -7694,14 +7694,6 @@ function ChatViewContent(props: ChatViewProps) {
|
||||
/>
|
||||
</WorkspacePageHeader>
|
||||
|
||||
<ThreadErrorBanner
|
||||
error={visibleThreadError}
|
||||
onDismiss={() => {
|
||||
setThreadError(activeThread.id, null);
|
||||
dismissThreadErrorBannerForSession(threadErrorBannerKey);
|
||||
setThreadErrorBannerDismissTick((tick) => tick + 1);
|
||||
}}
|
||||
/>
|
||||
{/* Main content area with optional plan sidebar */}
|
||||
<div className="flex min-h-0 min-w-0 flex-1">
|
||||
{/* Chat column */}
|
||||
@@ -7727,13 +7719,21 @@ function ChatViewContent(props: ChatViewProps) {
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
{/* Provider status overlays the timeline without changing its content height. */}
|
||||
<div className="pointer-events-none absolute inset-x-0 top-0 z-20">
|
||||
{/* Banners overlay the timeline without changing its content height. */}
|
||||
<div className="pointer-events-none absolute inset-x-0 top-0 z-20 flex flex-col">
|
||||
<ProviderStatusBanner
|
||||
status={visibleProviderStatus}
|
||||
onDismiss={() => setDismissedProviderStatusBannerKey(providerStatusBannerKey)}
|
||||
onOpenProviderSetup={openProviderSetup}
|
||||
/>
|
||||
<ThreadErrorBanner
|
||||
error={visibleThreadError}
|
||||
onDismiss={() => {
|
||||
setThreadError(activeThread.id, null);
|
||||
dismissThreadErrorBannerForSession(threadErrorBannerKey);
|
||||
setThreadErrorBannerDismissTick((tick) => tick + 1);
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{/* Messages Wrapper */}
|
||||
<div className="relative flex min-h-0 flex-1 flex-col">
|
||||
|
||||
@@ -42,8 +42,13 @@ export const ThreadErrorBanner = memo(function ThreadErrorBanner({
|
||||
}) {
|
||||
if (!error) return null;
|
||||
return (
|
||||
<div className="mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3">
|
||||
<Alert variant="error" controlAlignment="first-line">
|
||||
<div className="pointer-events-auto mx-auto w-fit max-w-[min(48rem,calc(100%-2rem))] pt-3">
|
||||
<Alert
|
||||
variant="error"
|
||||
controlAlignment="first-line"
|
||||
className="alert-glass"
|
||||
data-variant="error"
|
||||
>
|
||||
<CircleAlertIcon />
|
||||
<AlertDescription>
|
||||
<Tooltip>
|
||||
|
||||
Reference in new issue
Block a user