seemore 1.9.0 → 1.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seemore",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
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",
@@ -286,7 +286,7 @@ const RUNTIME = `(function () {
286
286
 
287
287
  // Wide enough for the rail: open the collapsible so it reads as a list, not a disclosure.
288
288
  var tocDetails = document.querySelector('.seemore-export-toc details');
289
- if (tocDetails && window.matchMedia('(min-width: 1280px)').matches) tocDetails.open = true;
289
+ if (tocDetails && window.matchMedia('(min-width: 1400px)').matches) tocDetails.open = true;
290
290
 
291
291
  var main = document.querySelector('main');
292
292
  var overlay = document.createElement('div');
@@ -104,7 +104,7 @@ function bindBehaviors(): void {
104
104
 
105
105
  // Wide enough for the rail: open the collapsible so it reads as a list, not a disclosure.
106
106
  const tocDetails = document.querySelector<HTMLDetailsElement>('.seemore-export-toc details');
107
- if (tocDetails && window.matchMedia('(min-width: 1280px)').matches) tocDetails.open = true;
107
+ if (tocDetails && window.matchMedia('(min-width: 1400px)').matches) tocDetails.open = true;
108
108
 
109
109
  const overlay = document.createElement('div');
110
110
  overlay.className = 'seemore-export-overlay';
@@ -536,8 +536,10 @@
536
536
  .seemore-export-main {
537
537
  margin-inline: auto;
538
538
  max-width: 56rem;
539
+ /* Generous top padding: with no header above it, the title needs more room than the
540
+ live page's column or it reads as glued to the top edge. */
539
541
  overflow-x: clip;
540
- padding: 2rem 1rem 4rem;
542
+ padding: 4rem 1rem 4rem;
541
543
  width: 100%;
542
544
  }
543
545
 
@@ -618,7 +620,9 @@
618
620
  color: var(--color-fd-foreground, #111827);
619
621
  }
620
622
 
621
- @media (min-width: 1280px) {
623
+ /* From 1400px up there is room for both the reading column and the rail side by side;
624
+ below that the rail would ride over the text, so the collapsible stays in flow. */
625
+ @media (min-width: 1400px) {
622
626
  .seemore-export-toc {
623
627
  inset-inline-end: 2rem;
624
628
  margin-block: 0;