@luciodale/docs-ui-kit 0.3.32 → 0.3.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luciodale/docs-ui-kit",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "Astro component library for documentation sites. Dark theme, orange accent.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -207,11 +207,13 @@ const { config, currentPath } = Astro.props;
207
207
  function open() {
208
208
  overlay?.classList.remove("hidden");
209
209
  menu?.classList.remove("translate-x-full");
210
+ document.body.style.overflow = "hidden";
210
211
  }
211
212
 
212
213
  function shut() {
213
214
  overlay?.classList.add("hidden");
214
215
  menu?.classList.add("translate-x-full");
216
+ document.body.style.overflow = "";
215
217
  }
216
218
 
217
219
  toggle?.addEventListener("click", open);
@@ -55,8 +55,7 @@
55
55
 
56
56
  .search-dialog-panel {
57
57
  width: 100%;
58
- max-width: 36rem;
59
- margin-inline: 1rem;
58
+ max-width: min(36rem, 100dvw - 2rem);
60
59
  border-radius: 0.75rem;
61
60
  border: 1px solid rgb(255 255 255 / 0.1);
62
61
  background: #0a0a0a;