Skip to content

Commit 263ecf9

Browse files
committed
fix(md-render): inline code inherits heading size in mothership/templates/changelog
1 parent 273e608 commit 263ecf9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/app/changelog/components/timeline-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export default function ChangelogList({ initialEntries }: Props) {
195195
</strong>
196196
),
197197
inlineCode: ({ children }) => (
198-
<code className='rounded bg-[var(--landing-bg-elevated)] px-1 py-0.5 font-mono text-[var(--landing-text)] text-xs'>
198+
<code className='whitespace-normal rounded bg-[var(--landing-bg-elevated)] px-1 py-0.5 font-mono text-[var(--landing-text)] not-italic'>
199199
{children}
200200
</code>
201201
),

apps/sim/app/templates/[id]/template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ export default function TemplateDetails({ isWorkspaceContext = false }: Template
887887
),
888888
li: ({ children }) => <li className='leading-[1.4rem]'>{children}</li>,
889889
inlineCode: ({ children }) => (
890-
<code className='rounded bg-muted px-1.5 py-0.5 font-mono text-[var(--caution)] text-xs'>
890+
<code className='whitespace-normal rounded bg-muted px-1.5 py-0.5 font-mono text-[var(--caution)] not-italic'>
891891
{children}
892892
</code>
893893
),

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ const MARKDOWN_COMPONENTS = {
217217
},
218218
inlineCode({ children }: { children?: React.ReactNode }) {
219219
return (
220-
<code className='rounded bg-[var(--surface-5)] px-1.5 py-0.5 font-[400] font-mono text-[var(--text-primary)] text-small before:content-none after:content-none'>
220+
<code className='whitespace-normal rounded bg-[var(--surface-5)] px-1.5 py-0.5 font-[400] font-mono text-[var(--text-primary)] not-italic before:content-none after:content-none'>
221221
{children}
222222
</code>
223223
)

0 commit comments

Comments
 (0)