@jean-is/render 0.8.0-rb24af6847e8a → 0.8.0-rb7dd9e653b35

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.
@@ -9,7 +9,7 @@
9
9
  @media screen {
10
10
  app-shell, [data-split] .here, main { container-type: inline-size; }
11
11
  main { --shell: 100cqi; }
12
- main .prose > .table:where(:has(th:nth-child(3))) { --wide: max(100cqi, min(var(--shell) - 2.5rem, 70rem)); margin-inline: calc((100cqi - var(--wide)) / 2); }
12
+ main .prose > .table:where(:has(th:nth-child(3))) { --wide: max(100cqi, min(var(--shell) - 2.5rem, 64rem)); margin-inline: calc((100cqi - var(--wide)) / 2); }
13
13
  main .prose > .table:where(:has(th:nth-child(3))) > table { inline-size: max-content; min-inline-size: 100cqi; max-inline-size: 100%; margin-inline: auto; overflow-wrap: break-word; }
14
14
  }
15
15
  /* A head that stays (D426): in the conversation, a table that fits (data-whole, as layouts.js tells)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jean-is/render",
3
- "version": "0.8.0-rb24af6847e8a",
3
+ "version": "0.8.0-rb7dd9e653b35",
4
4
  "description": "Draws a task that Jean saved as a web page, or shared by link, with Jean's own files.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/ui/model.js CHANGED
@@ -47,6 +47,12 @@ export function modelWorker(url, stopped) {
47
47
  }
48
48
  }
49
49
 
50
+ /**
51
+ * A phone or a tablet, as its browser says (an iPad says it is a Mac, with touch points): what holds a model of hundreds of
52
+ * megabytes stutters there, so the device's brain (D319) and Kev (D660) never run on it.
53
+ */
54
+ export const handheld = () => Boolean(/** @type {any} */ (navigator).userAgentData?.mobile) || /Android|iPhone|iPad|Mobile/.test(navigator.userAgent) || (/Macintosh/.test(navigator.userAgent) && navigator.maxTouchPoints > 1)
55
+
50
56
  let working = 0
51
57
 
52
58
  /** Every loop's play state, `var(--loops, running)` in the style sheets, set on the root (CSSOM: the CSP refuses style attributes). @param {boolean} still */