Skip to content

Commit f5516d4

Browse files
authored
Improve OpenAPI TOC display (#3022)
1 parent d2facb2 commit f5516d4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/gitbook/src/components/PageAside/ScrollSectionsList.tsx

+1-4
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ export function ScrollSectionsList(props: { sections: DocumentSection[] }) {
7070
href={`#${section.id}`}
7171
className={tcls(
7272
'relative',
73-
'flex',
74-
'flex-row',
75-
'items-baseline',
7673
'z-10',
7774
'text-sm',
7875

@@ -126,7 +123,7 @@ export function ScrollSectionsList(props: { sections: DocumentSection[] }) {
126123
>
127124
{section.tag ? (
128125
<span
129-
className={`openapi-method openapi-method-${section.tag.toLowerCase()}`}
126+
className={`-mt-0.5 openapi-method openapi-method-${section.tag.toLowerCase()}`}
130127
>
131128
{section.tag}
132129
</span>

0 commit comments

Comments
 (0)