Improve OpenAPI TOC display (#3022)

This commit is contained in:
Greg Bergé
2025-03-21 15:29:12 +01:00
committed by GitHub
parent d2facb2db1
commit f5516d4e21
@@ -70,9 +70,6 @@ export function ScrollSectionsList(props: { sections: DocumentSection[] }) {
href={`#${section.id}`}
className={tcls(
'relative',
'flex',
'flex-row',
'items-baseline',
'z-10',
'text-sm',
@@ -126,7 +123,7 @@ export function ScrollSectionsList(props: { sections: DocumentSection[] }) {
>
{section.tag ? (
<span
className={`openapi-method openapi-method-${section.tag.toLowerCase()}`}
className={`-mt-0.5 openapi-method openapi-method-${section.tag.toLowerCase()}`}
>
{section.tag}
</span>