Skip to content

Commit 1aada6b

Browse files
Sg312emir-karabeg
authored andcommitted
Fix thinking text
1 parent a9edbd7 commit 1aada6b

File tree

1 file changed

+4
-4
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components

1 file changed

+4
-4
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components/thinking-block.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ export function ThinkingBlock({
245245
isExpanded ? 'mt-1 max-h-[200px] opacity-100' : 'max-h-0 opacity-0'
246246
)}
247247
>
248-
{/* Use simple pre tag during streaming for smooth performance */}
249-
<pre className='whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)] leading-[1.15rem]'>
250-
{content}
248+
{/* Render markdown during streaming with thinking text styling */}
249+
<div className='whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)] leading-none [&_*]:!text-[var(--text-muted)] [&_*]:!text-[12px] [&_*]:!leading-none [&_*]:!m-0 [&_*]:!p-0 [&_*]:!mb-0 [&_*]:!mt-0 [&_p]:!m-0 [&_h1]:!text-[12px] [&_h1]:!font-semibold [&_h2]:!text-[12px] [&_h2]:!font-semibold [&_h3]:!text-[12px] [&_h3]:!font-semibold [&_code]:!text-[11px] [&_ul]:!pl-4 [&_ul]:!my-0 [&_ol]:!pl-4 [&_ol]:!my-0 [&_li]:!my-0 [&_li]:!py-0 [&_br]:!leading-[0.5]'>
250+
<CopilotMarkdownRenderer content={content} />
251251
<span className='ml-1 inline-block h-2 w-1 animate-pulse bg-[var(--text-muted)]' />
252-
</pre>
252+
</div>
253253
</div>
254254
</div>
255255
)

0 commit comments

Comments
 (0)