seemore 1.5.1 → 1.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seemore",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Let AI write the Markdown. Let seemore show it better — zero config documentation framework.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -87,8 +87,11 @@ export function SearchDialog(props: SharedProps) {
87
87
  void navigate(withHighlight(stripBase(config.base, item.url), search), { viewTransition: true });
88
88
  }}
89
89
  >
90
- <SearchDialogOverlay />
91
- <SearchDialogContent>
90
+ {/* The sticky header is `z-50` too, and it renders after this portal in the DOM — at
91
+ mobile's `top-4` it wins the tie and paints over the input row. fumadocs' own header
92
+ is `z-30`, so theirs never meets this; ours needs the dialog lifted above it. */}
93
+ <SearchDialogOverlay className="z-[60]" />
94
+ <SearchDialogContent className="z-[60]">
92
95
  <SearchDialogHeader>
93
96
  <SearchDialogIcon />
94
97
  {/*
@@ -398,5 +398,16 @@
398
398
  }
399
399
  }
400
400
 
401
+ /* Unlayered, deliberately: fumadocs' `max-h-[460px]` utility lives in Tailwind's utilities
402
+ layer, which beats anything in `@layer components` regardless of specificity. fumadocs
403
+ caps the results list at 460px, but the dialog opens at `top-4` plus a ~3.5rem input row,
404
+ so on a short (landscape phone) viewport the list runs past the fold with its bottom
405
+ unreachable. Bind it to the real viewport height there instead. */
406
+ @media (max-height: 600px) {
407
+ [role='dialog'] [class*='max-h-[460px]'] {
408
+ max-height: calc(100dvh - 6rem);
409
+ }
410
+ }
411
+
401
412
  /* seemore:user-css — the stylesheet named by `css` in seemore.config.ts is inlined here, at
402
413
  the very end, so that it wins against everything above it. */