zudoku 0.4.6-dev.0 → 0.4.6-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/components/Header.js +1 -1
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/lib/{OperationList-CLtN0fiZ.js → OperationList-SaIDVrdZ.js} +79 -61
- package/lib/{OperationList-CLtN0fiZ.js.map → OperationList-SaIDVrdZ.js.map} +1 -1
- package/lib/{Route-Cfon6vDR.js → Route-Dn09tYR1.js} +2 -2
- package/lib/{Route-Cfon6vDR.js.map → Route-Dn09tYR1.js.map} +1 -1
- package/lib/{index-BfLQd6h_.js → index-Bx9hQF5t.js} +3 -3
- package/lib/{index-BfLQd6h_.js.map → index-Bx9hQF5t.js.map} +1 -1
- package/lib/zudoku.components.js +1 -1
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +1 -1
- package/src/app/main.css +6 -7
- package/src/lib/components/Header.tsx +1 -1
- package/src/lib/plugins/openapi/OperationListItem.tsx +12 -2
package/package.json
CHANGED
package/src/app/main.css
CHANGED
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
--top-header-height: 65px;
|
|
82
82
|
--top-nav-height: 50px;
|
|
83
83
|
--banner-height: 48px;
|
|
84
|
-
--side-nav-width: theme("spacing.72");
|
|
85
84
|
--header-height: calc(
|
|
86
85
|
var(--top-header-height) + var(--top-nav-height) + var(--banner-height)
|
|
87
86
|
);
|
|
88
87
|
--scroll-padding: calc(var(--header-height) + 10px);
|
|
88
|
+
--side-nav-width: theme("spacing.72");
|
|
89
89
|
--padding-content-top: theme("spacing.12");
|
|
90
90
|
--padding-content-bottom: theme("spacing.12");
|
|
91
91
|
--padding-nav-item: theme("spacing[2.5]");
|
|
@@ -93,6 +93,11 @@
|
|
|
93
93
|
--scrollbar-width: calc(100vw - 100%);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
html {
|
|
97
|
+
/* This is to prevent layout jumping when the scrollbar appears/disappears */
|
|
98
|
+
@apply -mr-[--scrollbar-width] scroll-pt-[--scroll-padding];
|
|
99
|
+
}
|
|
100
|
+
|
|
96
101
|
html,
|
|
97
102
|
body {
|
|
98
103
|
@apply h-full overscroll-none;
|
|
@@ -105,12 +110,6 @@
|
|
|
105
110
|
@apply border-border;
|
|
106
111
|
}
|
|
107
112
|
|
|
108
|
-
html {
|
|
109
|
-
scroll-padding-block: var(--scroll-padding);
|
|
110
|
-
/* This is to prevent layout jumping when the scrollbar appears/disappears */
|
|
111
|
-
@apply -mr-[--scrollbar-width];
|
|
112
|
-
}
|
|
113
|
-
|
|
114
113
|
body {
|
|
115
114
|
@apply antialiased bg-background text-foreground overflow-y-auto overflow-x-clip;
|
|
116
115
|
font-feature-settings:
|
|
@@ -66,7 +66,7 @@ export const Header = memo(function HeaderInner() {
|
|
|
66
66
|
<div>{page.banner.message}</div>
|
|
67
67
|
</div>
|
|
68
68
|
) : (
|
|
69
|
-
<style>{`:root{--banner-height:
|
|
69
|
+
<style>{`:root{ --banner-height: 0px }`}</style>
|
|
70
70
|
)}
|
|
71
71
|
</>
|
|
72
72
|
<div className="max-w-screen-2xl mx-auto">
|
|
@@ -60,7 +60,12 @@ export const OperationListItem = ({
|
|
|
60
60
|
)}
|
|
61
61
|
{renderIf(operation.requestBody?.content?.at(0)?.schema, (schema) => (
|
|
62
62
|
<div className="mt-4 flex flex-col gap-4">
|
|
63
|
-
<Heading
|
|
63
|
+
<Heading
|
|
64
|
+
level={3}
|
|
65
|
+
className="capitalize"
|
|
66
|
+
id={`${operation.slug}/request-body`}
|
|
67
|
+
registerSidebarAnchor
|
|
68
|
+
>
|
|
64
69
|
Request Body
|
|
65
70
|
</Heading>
|
|
66
71
|
<SchemaView schema={schema} />
|
|
@@ -68,7 +73,12 @@ export const OperationListItem = ({
|
|
|
68
73
|
))}
|
|
69
74
|
{operation.responses.length > 0 && (
|
|
70
75
|
<>
|
|
71
|
-
<Heading
|
|
76
|
+
<Heading
|
|
77
|
+
level={3}
|
|
78
|
+
className="capitalize mt-8 pt-8 border-t"
|
|
79
|
+
id={`${operation.slug}/responses`}
|
|
80
|
+
registerSidebarAnchor
|
|
81
|
+
>
|
|
72
82
|
Responses
|
|
73
83
|
</Heading>
|
|
74
84
|
<Tabs
|