Skip to content

Commit 8117059

Browse files
fix(ui): inline headings inside collapsible summaries (#2599)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5131302 commit 8117059

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

app/components/Readme.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,20 @@ function handleClick(event: MouseEvent) {
487487
summary {
488488
font-size: 1rem;
489489
color: var(--fg-muted);
490+
491+
/* Markdown often wraps headings/paragraphs inside <summary>, which
492+
forces them onto new lines. Inline them so the disclosure marker
493+
sits next to the label while preserving heading styles. */
494+
> h1,
495+
> h2,
496+
> h3,
497+
> h4,
498+
> h5,
499+
> h6,
500+
> p {
501+
display: inline;
502+
margin: 0;
503+
}
490504
}
491505
}
492506
</style>

0 commit comments

Comments
 (0)