Skip to content

Commit 81ea56d

Browse files
Fix thinking block dots layout race condition
Changed flex layout to inline-flex with inline-block dots to prevent vertical misalignment issues that were appearing on desktop during streaming. The dots now properly align with the text baseline. Fixes #422 Co-authored-by: Anthony <AnthonyRonning@users.noreply.github.com>
1 parent a3508a5 commit 81ea56d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/src/components/markdown.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,16 +88,16 @@ export function ThinkingBlock({ content, isThinking, duration }: ThinkingBlockPr
8888
<Brain className="h-4 w-4 text-gray-500 dark:text-gray-400" />
8989
<span className="text-sm text-gray-600 dark:text-gray-300 font-medium">
9090
{isThinking ? (
91-
<span className="flex items-center gap-2">
91+
<span className="inline-flex items-center gap-2">
9292
Thinking for {durationText} seconds
93-
<span className="flex gap-1">
94-
<span className="animate-bounce" style={{ animationDelay: "0ms" }}>
93+
<span className="inline-flex gap-1 items-baseline">
94+
<span className="animate-bounce inline-block" style={{ animationDelay: "0ms" }}>
9595
.
9696
</span>
97-
<span className="animate-bounce" style={{ animationDelay: "150ms" }}>
97+
<span className="animate-bounce inline-block" style={{ animationDelay: "150ms" }}>
9898
.
9999
</span>
100-
<span className="animate-bounce" style={{ animationDelay: "300ms" }}>
100+
<span className="animate-bounce inline-block" style={{ animationDelay: "300ms" }}>
101101
.
102102
</span>
103103
</span>

0 commit comments

Comments
 (0)