zudoku 0.4.2-dev.1 → 0.4.2-dev.2

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.
@@ -1,5 +1,5 @@
1
1
  import "./jsx-runtime-B6kdoens.js";
2
- import { o as s } from "./index-D2SS6ne_.js";
2
+ import { o as s } from "./index-XW9taAve.js";
3
3
  import "./urql-YhcsXYy8.js";
4
4
  import "./ZudokuContext-BHNQL3XO.js";
5
5
  import "zudoku/openapi-worker";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zudoku",
3
- "version": "0.4.2-dev.1",
3
+ "version": "0.4.2-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
package/src/app/main.css CHANGED
@@ -102,7 +102,7 @@
102
102
  html {
103
103
  scroll-padding-block: var(--scroll-padding);
104
104
  /* This is to prevent layout jumping when the scrollbar appears/disappears */
105
- padding-left: var(--scrollbar-width);
105
+ @apply mr-[calc(-1*var(--scrollbar-width))] overflow-x-hidden;
106
106
  }
107
107
 
108
108
  body {
@@ -172,6 +172,16 @@
172
172
  }
173
173
  }
174
174
 
175
+ .scrollbar {
176
+ /* For Firefox */
177
+ scrollbar-width: thin;
178
+ scrollbar-color: transparent transparent;
179
+ }
180
+
181
+ .scrollbar:hover {
182
+ scrollbar-color: hsla(var(--border)) transparent;
183
+ }
184
+
175
185
  .scrollbar::-webkit-scrollbar {
176
186
  padding: 2px;
177
187
  width: 12px;
@@ -58,8 +58,8 @@ export const Header = memo(function HeaderInner() {
58
58
  const ThemeIcon = isDark ? MoonStarIcon : SunIcon;
59
59
 
60
60
  return (
61
- // padding-left is to prevent layout jumping when scrollbar appears/disappears
62
- <header className="fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0 pl-[var(--scrollbar-width)]">
61
+ // margin-left is to prevent layout jumping when scrollbar appears/disappears
62
+ <header className="fixed top-0 z-10 bg-background/80 backdrop-blur left-0 right-0 2xl:ml-[--scrollbar-width]">
63
63
  <div className="max-w-screen-2xl mx-auto">
64
64
  <div className="grid grid-cols-[calc(var(--side-nav-width))_1fr] lg:gap-12 items-center border-b px-12 h-[--top-header-height]">
65
65
  <div className="flex">
@@ -103,10 +103,13 @@ export const SidebarCategory = ({
103
103
  <ul className="mt-1 border-l ps-2">
104
104
  {category.items.map((item) => (
105
105
  <SidebarItem
106
- key={item.label}
106
+ key={
107
+ ("id" in item ? item.id : "") +
108
+ ("href" in item ? item.href : "") +
109
+ item.label
110
+ }
107
111
  level={level + 1}
108
112
  item={item}
109
- // activeAnchor={activeAnchor}
110
113
  />
111
114
  ))}
112
115
  </ul>
@@ -225,7 +225,7 @@ export const Playground = ({
225
225
  <Tabs
226
226
  defaultValue={pathParams.length > 0 ? "parameters" : "headers"}
227
227
  >
228
- <div className="flex justify-between">
228
+ <div className="flex flex-wrap gap-1 justify-between">
229
229
  <TabsList>
230
230
  {queryParams.length + pathParams.length > 0 && (
231
231
  <TabsTrigger value="parameters">Parameters</TabsTrigger>