File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/copilot-message/components Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -326,8 +326,8 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
326326 ) ,
327327
328328 table : ( { children } : React . TableHTMLAttributes < HTMLTableElement > ) => (
329- < div className = 'my-4 max-w-full overflow-x-auto' >
330- < table className = 'min-w-full table-auto border border-[var(--border-1)] font-season text-sm ' >
329+ < div className = 'my-3 max-w-full overflow-x-auto' >
330+ < table className = 'min-w-full table-auto border border-[var(--border-1)] font-season text-xs ' >
331331 { children }
332332 </ table >
333333 </ div >
@@ -346,12 +346,12 @@ export default function CopilotMarkdownRenderer({ content }: CopilotMarkdownRend
346346 </ tr >
347347 ) ,
348348 th : ( { children } : React . ThHTMLAttributes < HTMLTableCellElement > ) => (
349- < th className = 'border-[var(--border-1)] border-r px-4 py-2 align-top font-base text-[var(--text-secondary)] last:border-r-0 dark:font-[470]' >
349+ < th className = 'border-[var(--border-1)] border-r px-2.5 py-1.5 align-top font-base text-[var(--text-secondary)] last:border-r-0 dark:font-[470]' >
350350 { children }
351351 </ th >
352352 ) ,
353353 td : ( { children } : React . TdHTMLAttributes < HTMLTableCellElement > ) => (
354- < td className = 'break-words border-[var(--border-1)] border-r px-4 py-2 align-top font-base text-[var(--text-primary)] last:border-r-0 dark:font-[470]' >
354+ < td className = 'break-words border-[var(--border-1)] border-r px-2.5 py-1.5 align-top font-base text-[var(--text-primary)] last:border-r-0 dark:font-[470]' >
355355 { children }
356356 </ td >
357357 ) ,
Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ export function ThinkingBlock({
246246 ) }
247247 >
248248 { /* Render markdown during streaming with thinking text styling */ }
249- < div className = '[&_*]:!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] whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)] leading-none ' >
249+ < div className = '[&_*]:!text-[var(--text-muted)] [&_*]:!text-[12px] [&_*]:!leading-[1.3] [&_p ]:!m-0 [&_p ]:!mb-1 [&_h1 ]:!text-[12px] [&_h1 ]:!font-semibold [&_h1 ]:!m-0 [&_h1]:!mb-1 [&_h2]:! text-[12px] [&_h2 ]:!font-semibold [&_h2]:!m-0 [&_h2]:!mb-1 [&_h3]:!text-[12px] [&_h3]:!font-semibold [&_h3]:!m-0 [&_h3]:!mb-1 [& _code]:!text-[11px] [&_ul]:!pl-5 [&_ul]:!my-1 [&_ol]:!pl-6 [&_ol]:!my-1 [&_li]:!my-0.5 [&_li]:!py-0 [&_br]:!leading-[0.5] [&_table]:!my-2 [&_th]:!px-2 [&_th]:!py-1 [&_th]:!text-[11px] [&_td]:!px-2 [&_td]:!py-1 [&_td]:!text-[11px] whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)]' >
250250 < CopilotMarkdownRenderer content = { content } />
251251 < span className = 'ml-1 inline-block h-2 w-1 animate-pulse bg-[var(--text-muted)]' />
252252 </ div >
@@ -286,7 +286,7 @@ export function ThinkingBlock({
286286 ) }
287287 >
288288 { /* Use markdown renderer for completed content */ }
289- < div className = '[&_*]:!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] whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)] leading-none ' >
289+ < div className = '[&_*]:!text-[var(--text-muted)] [&_*]:!text-[12px] [&_*]:!leading-[1.3] [&_p ]:!m-0 [&_p ]:!mb-1 [&_h1 ]:!text-[12px] [&_h1 ]:!font-semibold [&_h1 ]:!m-0 [&_h1]:!mb-1 [&_h2]:! text-[12px] [&_h2 ]:!font-semibold [&_h2]:!m-0 [&_h2]:!mb-1 [&_h3]:!text-[12px] [&_h3]:!font-semibold [&_h3]:!m-0 [&_h3]:!mb-1 [& _code]:!text-[11px] [&_ul]:!pl-5 [&_ul]:!my-1 [&_ol]:!pl-6 [&_ol]:!my-1 [&_li]:!my-0.5 [&_li]:!py-0 [&_br]:!leading-[0.5] [&_table]:!my-2 [&_th]:!px-2 [&_th]:!py-1 [&_th]:!text-[11px] [&_td]:!px-2 [&_td]:!py-1 [&_td]:!text-[11px] whitespace-pre-wrap font-[470] font-season text-[12px] text-[var(--text-muted)]' >
290290 < CopilotMarkdownRenderer content = { content } />
291291 </ div >
292292 </ div >
You can’t perform that action at this time.
0 commit comments