<timestamp>Thursday, Aug 6, 2026, 2:26 PM (UTC+2)</timestamp> when i open…
- User
Thursday, Aug 6, 2026, 2:26 PM (UTC+2)
when i open @chat/apps/frontend/src/components/tool-calls/execute-sql.tsx from the code and if the code is, lets say 1 row, it opens for a min height that is lets say 400px and then falls back to 1row in height, its a bit ugly
- Assistant
I'll look at the execute-sql component and how its height is calculated when opening short SQL.
- Assistant
The jump is likely in
SqlQueryDisplayor the wrapper's expand animation — checking those next. - Assistant
Found it: Streamdown’s code block reserves
contain-intrinsic-size: auto 200pxwithcontent-visibility: auto, so short SQL expands tall then snaps. Overriding that in.hide-code-header. - Assistant
Dropping the inline comment to match the file's style.
- Assistant
Streamdown’s code blocks use
content-visibility: autowithcontain-intrinsic-size: auto 200px, so the browser reserves ~200px until layout finishes — short SQL then snaps down to one line (worse with the accordion open animation).Fixed in
.hide-code-headerby forcingcontent-visibility: visibleand clearing the reserved size, so query view opens at the real height. - User
when i open @chat/apps/frontend/src/components/tool-calls/execute-sql.tsx from the code and if the code is, lets say 1 row, it opens for a min height that is lets say 400px and then falls back to 1row in height, its a bit ugly
- User
Thursday, Aug 6, 2026, 2:28 PM (UTC+2)
it does not fix
- Assistant
I'll dig further — likely the accordion height animation or Streamdown's render path, not just the CSS override.
- Assistant
Inline styles on Streamdown beat our CSS — checking that and the accordion height path.
- Assistant
That matches the side-panel SQL editor fit-to-content resize more than Streamdown. Checking how the panel gets its initial size.
- Assistant
CSS didn't win — Streamdown sets those sizes as inline styles. Fixing that with
!important, and stopping the side-panel SQL pane from starting oversized before fit-to-content runs. - Assistant
Removing the comment, fixing the side panel flash, and replacing
SqlQueryDisplayso it doesn't depend on Streamdown's size reservation. - Assistant
Rewriting
SqlQueryDisplayto drop Streamdown (avoids the reserved height), and fixing the side-panel open flash. - Assistant
Simplifying the side panel: an accurate
defaultSizeshould stop the tall→short flash without the opacity hack. - Assistant
The earlier CSS change couldn’t win — Streamdown sets that size with inline styles.
Two fixes in place now:
- Inline Code view —
SqlQueryDisplayno longer uses Streamdown, so there’s no reserved ~200px height. Short queries open at their real height. - Side panel — the SQL pane had no
defaultSize, so it took the leftover space (~400px) and thenfitSqlPanelToContentshrank it. It now starts from an estimate of the SQL height.
Try the Code icon again (hard refresh if styles were cached). If it still jumps, say whether it’s the inline Code toggle or the side panel (pencil).
- Inline Code view —