my-durable 0.0.86 → 0.0.87

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.
@@ -2,13 +2,13 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
6
6
  <meta name="theme-color" content="#171214" />
7
7
  <meta name="referrer" content="no-referrer" />
8
8
  <link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
9
9
  <title>Durable Pi | Network</title>
10
- <script type="module" crossorigin src="/assets/index-BBLhjzni.js"></script>
11
- <link rel="stylesheet" crossorigin href="/assets/index-Dma4hCvb.css">
10
+ <script type="module" crossorigin src="/assets/index-BvzxmEuM.js"></script>
11
+ <link rel="stylesheet" crossorigin href="/assets/index-BH8kpBKe.css">
12
12
  </head>
13
13
  <body>
14
14
  <div id="app"></div>
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
6
6
  <meta name="theme-color" content="#171214" />
7
7
  <meta name="referrer" content="no-referrer" />
8
8
  <link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
@@ -24,3 +24,22 @@ if (/^\/pair\/?$/.test(url.pathname)) {
24
24
  }
25
25
  }
26
26
  createApp(App).mount("#app");
27
+
28
+ // Soft keyboard, iOS: the layout viewport never resizes, so measure the
29
+ // VISUAL viewport and feed it to the shell heights as --vvh (in root zoom
30
+ // coordinates: rendered = var × zoom = the real visible height). Android
31
+ // follows interactive-widget=resizes-content instead, where this var simply
32
+ // agrees with the resized dvh.
33
+ {
34
+ const vv = window.visualViewport;
35
+ const root = document.documentElement;
36
+ const apply = () => {
37
+ const z = parseFloat(getComputedStyle(root).zoom || "1") || 1;
38
+ root.style.setProperty("--vvh", `${(vv?.height ?? window.innerHeight) / z}px`);
39
+ };
40
+ vv?.addEventListener("resize", apply);
41
+ vv?.addEventListener("scroll", apply);
42
+ window.addEventListener("resize", apply);
43
+ window.addEventListener("orientationchange", apply);
44
+ apply();
45
+ }
@@ -3287,26 +3287,26 @@ select:focus {
3287
3287
  Engines without standardised zoom (Safari < 17.4) ignore it and fall back
3288
3288
  to the all-rem type scale at the bottom: text-only shrink, still coherent. */
3289
3289
  @media (max-width: 1599px) {
3290
- :root { zoom: 0.95; }
3291
- :root .shell { height: calc(100dvh / 0.95); }
3290
+ :root { zoom: 0.95; --uiz: 0.95; }
3291
+ :root .shell { height: var(--vvh, calc(100dvh / 0.95)); }
3292
3292
  }
3293
3293
  @media (max-width: 1199px) {
3294
- :root { zoom: 0.9; }
3295
- :root .shell { height: calc(100dvh / 0.9); }
3294
+ :root { zoom: 0.9; --uiz: 0.9; }
3295
+ :root .shell { height: var(--vvh, calc(100dvh / 0.9)); }
3296
3296
  }
3297
3297
  @media (max-width: 899px) {
3298
- :root { zoom: 0.85; }
3299
- :root .shell { height: calc(100dvh / 0.85); }
3298
+ :root { zoom: 0.85; --uiz: 0.85; }
3299
+ :root .shell { height: var(--vvh, calc(100dvh / 0.85)); }
3300
3300
  }
3301
3301
  @media (max-width: 740px) {
3302
- :root { zoom: 0.82; }
3302
+ :root { zoom: 0.82; --uiz: 0.82; }
3303
3303
  /* The shell IS the screen: fixed height, never scrolls — the topbar and
3304
3304
  the bottom nav are ordinary flex rows so they stay pinned, and the
3305
3305
  active pane (chat-scroll / inspector / tree drawer) scrolls inside.
3306
3306
  The old height:auto + overflow:visible let the DOCUMENT scroll, which
3307
3307
  carried the bottom bar away with the content (live report). */
3308
3308
  :root .shell {
3309
- height: calc(100dvh / 0.82);
3309
+ height: var(--vvh, calc(100dvh / 0.82));
3310
3310
  min-height: 0;
3311
3311
  overflow: hidden;
3312
3312
  }
@@ -3319,9 +3319,9 @@ select:focus {
3319
3319
  }
3320
3320
  }
3321
3321
  @media (max-width: 550px) {
3322
- :root { zoom: 0.78; }
3322
+ :root { zoom: 0.78; --uiz: 0.78; }
3323
3323
  :root .shell {
3324
- height: calc(100dvh / 0.78);
3324
+ height: var(--vvh, calc(100dvh / 0.78));
3325
3325
  min-height: 0;
3326
3326
  }
3327
3327
  .inspector {
@@ -3342,3 +3342,23 @@ select:focus {
3342
3342
  }
3343
3343
  }
3344
3344
  }
3345
+
3346
+ /* ── Keyboard: the form must survive the soft keyboard ────────────────────
3347
+ Two live failure modes when an input gets focus on a phone:
3348
+ 1. iOS auto-zooms the whole viewport when the focused control renders
3349
+ under 16px — under the ui zoom every input did, so the page "exploded".
3350
+ Raise inputs to a RENDERED 16px (16px / zoom in root coordinates).
3351
+ Scoped component styles have higher specificity, hence !important.
3352
+ 2. The shell must shrink to the space ABOVE the keyboard, not stay
3353
+ viewport-tall behind it. index.html declares
3354
+ interactive-widget=resizes-content (Android/Chrome: the layout viewport
3355
+ then resizes, so 100dvh follows); iOS never resizes its layout viewport,
3356
+ so main.ts measures visualViewport and feeds --vvh, which the shell
3357
+ heights above prefer over 100dvh. */
3358
+ @media (max-width: 1599px) {
3359
+ input,
3360
+ textarea,
3361
+ select {
3362
+ font-size: calc(16px / var(--uiz, 1)) !important;
3363
+ }
3364
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-durable",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
5
5
  "license": "MIT",
6
6
  "repository": {