Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): make sql editor error scrollable on small heights (#66661)

Thiago Salvatore2edc6c3f7799
diff --git a/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx b/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx
index 4ff3660d5bd4..6c0289463f83 100644
--- a/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx
+++ b/frontend/src/scenes/data-warehouse/editor/OutputPane.tsx
@@ -1021,19 +1021,21 @@ const ErrorState = ({ responseError, sourceQuery, queryCancelled, response }: an
return (
<div className={clsx('flex-1 absolute top-0 left-0 right-0 bottom-0 overflow-auto')}>
- <InsightErrorState
- query={sourceQuery}
- excludeDetail
- title={
- <pre className="text-xs bg-danger-highlight p-2 rounded overflow-auto max-h-40 max-w-[80%] mx-auto text-left whitespace-pre-wrap break-words">
- {error}
- </pre>
- }
- excludeActions={queryCancelled} // Don't display fix/debugger buttons if the query was cancelled
- fixWithAIComponent={
- <FixErrorButton contentOverride="Fix error with AI" type="primary" source="query-error" />
- }
- />
+ <div className="flex min-h-full flex-col justify-center">
+ <InsightErrorState
+ query={sourceQuery}
+ excludeDetail
+ title={
+ <pre className="text-xs bg-danger-highlight p-2 rounded overflow-auto max-h-40 max-w-[80%] mx-auto text-left whitespace-pre-wrap break-words">
+ {error}
+ </pre>
+ }
+ excludeActions={queryCancelled} // Don't display fix/debugger buttons if the query was cancelled
+ fixWithAIComponent={
+ <FixErrorButton contentOverride="Fix error with AI" type="primary" source="query-error" />
+ }
+ />
+ </div>
</div>
)
}