From c226c6431745302ad5b10b165f5d7d222ed04910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20B=C3=A4r?= Date: Thu, 18 Jun 2026 11:49:57 +0200 Subject: [PATCH] fix: add bottom spacing to the top-level `@since` tag The "Added in" tag on top-level symbols (classes, interfaces, enums, type aliases) is followed by other sections, so without a bottom margin it sat flush against the next block. Add a `tsd-comment-since-root` modifier with a bottom margin for that case only; member tags close out a panel and are left untouched. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/components/Reflection.tsx | 2 +- src/components/styles.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Reflection.tsx b/src/components/Reflection.tsx index 69bfd918..40c2aca5 100644 --- a/src/components/Reflection.tsx +++ b/src/components/Reflection.tsx @@ -34,7 +34,7 @@ export function Reflection({ reflection }: ReflectionProps) { {hasComment(reflection.comment) && } {sinceContent && ( -
+
)} diff --git a/src/components/styles.css b/src/components/styles.css index a4bbafa2..17987ab5 100644 --- a/src/components/styles.css +++ b/src/components/styles.css @@ -199,6 +199,12 @@ html[data-theme='light'] .tsd-panel-content { border-top: 1px solid rgba(0, 0, 0, 0.05); } +/* Top-level symbols render the tag inline above other sections, so it needs a + bottom margin to sit evenly; member tags close out a panel and don't. */ +.tsd-comment-since-root { + margin-bottom: 1em; +} + .tsd-comment-root { margin-top: 0; margin-bottom: var(--tsd-spacing-vertical-full);