fix(ui): reduce markdown jank while responses stream (#19304)

This commit is contained in:
Shoubhit Dash
2026-03-27 01:13:30 +05:30
committed by GitHub
parent 311ba4179a
commit b7a06e1939
4 changed files with 109 additions and 44 deletions

View File

@@ -943,7 +943,10 @@ export function MessageTimeline(props: {
"min-w-0 w-full max-w-full": true,
"md:max-w-200 2xl:max-w-[1000px]": props.centered,
}}
style={{ "content-visibility": "auto", "contain-intrinsic-size": "auto 500px" }}
style={{
"content-visibility": active() ? undefined : "auto",
"contain-intrinsic-size": active() ? undefined : "auto 500px",
}}
>
<Show when={commentCount() > 0}>
<div class="w-full px-4 md:px-5 pb-2">