feat(desktop): improve markdown heading spacing in session timeline (#34738)

This commit is contained in:
usrnk1
2026-07-01 20:39:12 +08:00
committed by GitHub
parent 246dea3a58
commit 3136b1ba97
3 changed files with 27 additions and 13 deletions
+12
View File
@@ -44,6 +44,17 @@ const Scheme = (props: { value?: unknown }) => {
return null
}
const NewLayout = () => {
// Mirror app.tsx BodyDesignClass so stories render with v2 (new-layout) styles
// instead of the legacy `body:not([data-new-layout])` branch.
onMount(() => {
document.body.toggleAttribute("data-new-layout", true)
document.body.classList.add("font-(family-name:--font-family-text)", "text-[13px]", "font-[440]")
document.body.classList.remove("text-12-regular")
})
return null
}
const frame = createJSXDecorator((Story, context) => {
const override = context.parameters?.themes?.themeOverride
const selected = context.globals?.theme
@@ -54,6 +65,7 @@ const frame = createJSXDecorator((Story, context) => {
<Font />
<ThemeProvider>
<Scheme value={scheme} />
<NewLayout />
<DialogProvider>
<MarkedProvider>
<div