Skip to content

Commit a2a75ca

Browse files
sserrataclaude
andcommitted
style(theme): keep REQUIRED label inline with schema title
When the parent summary became a flex row, the h3/strong holding the title and the REQUIRED span fell back to block layout and wrapped. Make the title element itself an inline-flex with a small gap so the title and the badge stay on one line and align vertically. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d237ff9 commit a2a75ca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/docusaurus-theme-openapi-docs/src/theme/SchemaExpansion/_SchemaExpansion.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,9 @@
105105
> h3,
106106
> strong {
107107
margin-bottom: 0;
108+
display: inline-flex;
109+
align-items: center;
110+
flex-wrap: wrap;
111+
gap: 0.4rem;
108112
}
109113
}

0 commit comments

Comments
 (0)