Skip to content

Commit 3690dc2

Browse files
waleedlatif1claude
andcommitted
fix(chat): make inline code inherit parent font size in markdown headers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 386d0aa commit 3690dc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/app/chat/components/message/components/markdown-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function createCustomComponents(LinkComponent: typeof LinkWithPreview) {
111111
},
112112

113113
inlineCode: ({ children }: { children?: React.ReactNode }) => (
114-
<code className='rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.9em] text-gray-800 dark:bg-gray-700 dark:text-gray-200'>
114+
<code className='rounded bg-gray-200 px-1 py-0.5 font-mono text-inherit text-gray-800 dark:bg-gray-700 dark:text-gray-200'>
115115
{children}
116116
</code>
117117
),

0 commit comments

Comments
 (0)