File tree 3 files changed +10
-5
lines changed
packages/gitbook/src/components
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' gitbook ' : patch
3
+ ---
4
+
5
+ Fix OpenAPI layout issues
Original file line number Diff line number Diff line change 145
145
}
146
146
147
147
.openapi-column-preview-body {
148
- @apply flex flex-col gap-4 sticky top-4 site-header:top-20 site-header- sections:top-32 page-api-block :xl:max-2xl:top-32 print-mode:static;
148
+ @apply flex flex-col gap-4 sticky top-4 site-header:top-20 site-header:xl:max-2xl:top-32 site-header- sections:top-32 site-header-sections :xl:max-2xl:top-44 print-mode:static;
149
149
}
150
150
151
151
.openapi-column-preview pre {
@@ -770,18 +770,18 @@ body:has(.openapi-select-popover) {
770
770
}
771
771
772
772
.openapi-disclosure : has (> .openapi-disclosure-trigger : hover ) {
773
- @apply bg-tint-subtle;
773
+ @apply bg-tint-subtle overflow-hidden ;
774
774
}
775
775
776
776
.openapi-disclosure : has (> .openapi-disclosure-trigger : hover ),
777
777
.openapi-disclosure [data-expanded = "true" ] {
778
778
@apply ring-1 shadow-sm;
779
779
}
780
780
781
- .openapi-disclosure [data-expanded = "true" ]: not (: first-child ) {
781
+ .openapi-disclosure [data-expanded = "true" ]: not (. openapi-schemas-disclosure ) : not ( : first-child ) {
782
782
@apply mt-2;
783
783
}
784
- .openapi-disclosure [data-expanded = "true" ]: not (: last-child ) {
784
+ .openapi-disclosure [data-expanded = "true" ]: not (. openapi-schemas-disclosure ) : not ( : last-child ) {
785
785
@apply mb-2;
786
786
}
787
787
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ export function PageAside(props: {
87
87
'page-api-block:xl:max-2xl:dark:hover:shadow-tint-1/1' ,
88
88
'page-api-block:xl:max-2xl:rounded-md' ,
89
89
'page-api-block:xl:max-2xl:h-auto' ,
90
- 'page-api-block:xl:max-2xl:my-8 ' ,
90
+ 'page-api-block:xl:max-2xl:my-4 ' ,
91
91
'page-api-block:p-2'
92
92
) }
93
93
>
You can’t perform that action at this time.
0 commit comments