mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 03:16:40 +00:00
Improve OpenAPI TOC display (#3022)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user