diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss index 52564f970..f6bad83c9 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/_ApiTabs.scss @@ -9,6 +9,12 @@ margin-bottom: var(--ifm-leading); } +.openapi-tabs__response-header { + &.openapi-tabs__heading { + margin-bottom: 0; + } +} + .openapi-tabs__response-code-item { border: 1px solid transparent; margin-top: 0 !important; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.tsx index ccb62c864..3393e0c08 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ApiTabs/index.tsx @@ -114,7 +114,11 @@ function TabList({ return (
- + {label}
diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss index 848430791..cf4f2966f 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/OperationTabs/_OperationTabs.scss @@ -8,7 +8,6 @@ .openapi-tabs__operation-container { display: flex; align-items: center; - margin-top: 1rem; overflow: hidden; } diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss index 8bd5ba269..bddacbede 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/SchemaTabs/_SchemaTabs.scss @@ -5,10 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -.openapi-tabs__schema-container { - margin-top: 1rem; -} - .openapi-tabs__schema-item { display: flex; align-items: center; diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/styles.scss b/packages/docusaurus-theme-openapi-docs/src/theme/styles.scss index 95de0d3c7..68bc3651a 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/styles.scss +++ b/packages/docusaurus-theme-openapi-docs/src/theme/styles.scss @@ -161,5 +161,5 @@ } .openapi-tabs__heading { - margin-bottom: 0; + margin-bottom: 1rem; }