@nendlabs/docpage 0.1.4 → 0.1.5

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/docpage.js CHANGED
@@ -250,5 +250,5 @@ export function DocPage({ config, className }) {
250
250
  const scheme = useColorScheme();
251
251
  const themeStyle = themeToStyle(config);
252
252
  const mergedStyle = { ...themeStyle, ...(config.style ?? {}) };
253
- return (_jsxs("div", { className: cn("docpage min-h-[100dvh] overflow-x-hidden bg-background text-foreground", config.className, className), style: mergedStyle, "data-docpage": true, "data-docpage-theme": scheme, children: [_jsx(Nav, { config: config }), _jsx(Header, { config: config }), _jsx(Container, { children: _jsxs("div", { className: "grid grid-cols-1 gap-10 md:grid-cols-[260px_minmax(0,1fr)]", "data-docpage-body": true, children: [_jsx("aside", { className: "hidden max-h-[calc(100vh-7rem)] overflow-auto pr-4 md:sticky md:top-24 md:block md:self-start", style: isWide ? undefined : { display: "none" }, "data-docpage-toc-rail": true, children: _jsx(Toc, { entries: tocEntries, activeId: tocActiveId, title: tocTitle }) }), _jsx("main", { className: "min-w-0 pb-24", children: _jsx(Prose, { children: config.sections.map((section) => renderSection(section, tocMap)) }) })] }) }), _jsx(Footer, { config: config })] }));
253
+ return (_jsxs("div", { className: cn("docpage min-h-[100dvh] bg-background text-foreground", config.className, className), style: mergedStyle, "data-docpage": true, "data-docpage-theme": scheme, children: [_jsx(Nav, { config: config }), _jsx(Header, { config: config }), _jsx(Container, { children: _jsxs("div", { className: "grid grid-cols-1 gap-10 md:grid-cols-[260px_minmax(0,1fr)]", "data-docpage-body": true, children: [_jsx("aside", { className: "hidden max-h-[calc(100vh-7rem)] overflow-auto pr-4 md:sticky md:top-24 md:block md:self-start", style: isWide ? undefined : { display: "none" }, "data-docpage-toc-rail": true, children: _jsx(Toc, { entries: tocEntries, activeId: tocActiveId, title: tocTitle }) }), _jsx("main", { className: "min-w-0 pb-24", children: _jsx(Prose, { children: config.sections.map((section) => renderSection(section, tocMap)) }) })] }) }), _jsx(Footer, { config: config })] }));
254
254
  }
@@ -366,9 +366,6 @@
366
366
  .overflow-x-auto {
367
367
  overflow-x: auto;
368
368
  }
369
- .overflow-x-hidden {
370
- overflow-x: hidden;
371
- }
372
369
  .rounded {
373
370
  border-radius: 0.25rem;
374
371
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nendlabs/docpage",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "an interactive paper-style project page renderer",
5
5
  "type": "module",
6
6
  "license": "MIT",