Skip to content

Commit 6f71da8

Browse files
authored
Fix padding in OpenAPI schemas (#3067)
1 parent fa91eb7 commit 6f71da8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changeset/proud-jokes-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'gitbook': patch
3+
---
4+
5+
Fix padding in schemas

packages/gitbook/src/components/DocumentView/OpenAPI/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132
/* Schema Structure */
133133
.openapi-schema-root {
134-
@apply mt-2;
134+
/* unstyled */
135135
}
136136

137137
.openapi-schema-properties {
@@ -655,7 +655,8 @@
655655
@apply border border-tint-subtle rounded-lg;
656656
}
657657

658-
.openapi-section-schemas > .openapi-section-body > .openapi-schema-properties > .openapi-schema {
658+
.openapi-section-schemas > .openapi-section-body > .openapi-schema-properties > .openapi-schema,
659+
.openapi-section-schemas > .openapi-section-body > .openapi-schema-root {
659660
@apply p-2.5;
660661
}
661662

0 commit comments

Comments
 (0)