story-kit: merge 237_bug_work_item_titles_render_too_large_in_expanded_view

This commit is contained in:
Dave
2026-02-28 09:18:50 +00:00
parent 4f3f0deaa8
commit 628bba0937
2 changed files with 67 additions and 1 deletions

View File

@@ -166,7 +166,24 @@ export function WorkItemDetailPanel({
className="markdown-body"
style={{ fontSize: "0.9em", lineHeight: 1.6 }}
>
<Markdown>{content}</Markdown>
<Markdown
components={{
// biome-ignore lint/suspicious/noExplicitAny: react-markdown requires any for component props
h1: ({ children }: any) => (
<h1 style={{ fontSize: "1.2em" }}>{children}</h1>
),
// biome-ignore lint/suspicious/noExplicitAny: react-markdown requires any for component props
h2: ({ children }: any) => (
<h2 style={{ fontSize: "1.1em" }}>{children}</h2>
),
// biome-ignore lint/suspicious/noExplicitAny: react-markdown requires any for component props
h3: ({ children }: any) => (
<h3 style={{ fontSize: "1em" }}>{children}</h3>
),
}}
>
{content}
</Markdown>
</div>
)}