my-durable 0.0.86 → 0.0.88

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.
@@ -2072,32 +2072,86 @@ textarea.app-state-json {
2072
2072
  }
2073
2073
  }
2074
2074
  @media (max-width: 740px) {
2075
- .shell {
2076
- height: auto;
2077
- min-height: 100dvh;
2078
- overflow: visible;
2079
- }
2075
+ /* ONE compact header, NOTHING removed (user: tinh gọn, không lược tính
2076
+ năng): brand · connection chip · bell · help · tree/inspector toggles ·
2077
+ New session — all present on a single 42px row. Smaller logo, buttons
2078
+ and gaps; chips ellipsize instead of wrapping (a wrapping auto-height
2079
+ header used to win the cascade from later blocks and eat a quarter of
2080
+ the screen). Every other ≤740 .topbar rule is deleted — this block and
2081
+ the width≤1100 padding tweak above are the only ones. */
2080
2082
  .topbar {
2081
2083
  position: static;
2082
- padding: 0 12px;
2083
- height: 58px;
2084
- min-height: 58px;
2084
+ flex-wrap: nowrap;
2085
+ gap: 5px;
2086
+ padding: 0 6px;
2087
+ height: 42px;
2088
+ min-height: 42px;
2089
+ max-height: 42px;
2085
2090
  flex: 0 0 auto;
2091
+ overflow: hidden;
2086
2092
  }
2087
2093
  .brand {
2088
- gap: 8px;
2094
+ gap: 4px;
2095
+ min-width: 0;
2096
+ }
2097
+ .brandmark {
2098
+ width: 28px;
2099
+ height: 16px;
2100
+ margin-left: 0;
2101
+ flex-shrink: 0;
2089
2102
  }
2090
2103
  .brand strong {
2091
- font-size: 1rem;
2104
+ font-size: 0.875rem;
2105
+ white-space: nowrap;
2106
+ overflow: hidden;
2107
+ text-overflow: ellipsis;
2092
2108
  }
2093
2109
  .brand-separator,
2094
2110
  .brand > .muted,
2095
- .version,
2096
- .connection {
2111
+ .version {
2097
2112
  display: none;
2098
2113
  }
2099
2114
  .top-actions {
2100
- gap: 5px;
2115
+ margin-left: auto;
2116
+ gap: 3px;
2117
+ flex: 0 0 auto;
2118
+ flex-wrap: nowrap;
2119
+ min-width: 0;
2120
+ }
2121
+ .top-actions .icon-button {
2122
+ width: 28px;
2123
+ height: 28px;
2124
+ padding: 3px;
2125
+ flex-shrink: 0;
2126
+ }
2127
+ .chip.connection {
2128
+ min-height: 24px;
2129
+ padding: 0 7px;
2130
+ gap: 4px;
2131
+ font-size: 0.6875rem;
2132
+ max-width: 116px;
2133
+ white-space: nowrap;
2134
+ overflow: hidden;
2135
+ text-overflow: ellipsis;
2136
+ }
2137
+ .usage-chip {
2138
+ font-size: 0.6875rem;
2139
+ max-width: 88px;
2140
+ white-space: nowrap;
2141
+ overflow: hidden;
2142
+ text-overflow: ellipsis;
2143
+ }
2144
+ .top-actions .primary.small {
2145
+ padding: 0 8px;
2146
+ min-height: 26px;
2147
+ gap: 3px;
2148
+ font-size: 0.8125rem;
2149
+ flex-shrink: 0;
2150
+ }
2151
+ .error-banner {
2152
+ padding: 6px 10px;
2153
+ gap: 6px;
2154
+ font-size: 0.8125rem;
2101
2155
  }
2102
2156
  .workspace {
2103
2157
  display: flex;
@@ -2409,16 +2463,7 @@ button:disabled {
2409
2463
  .inspector {
2410
2464
  max-height: 60vh;
2411
2465
  }
2412
- .topbar {
2413
- min-height: 68px;
2414
- height: 68px;
2415
- }
2416
- .top-actions .icon-button {
2417
- display: none;
2418
- }
2419
- .brand strong {
2420
- font-size: 1rem;
2421
- }
2466
+ /* topbar height: owned by the compact block in the ≤740 shell section */
2422
2467
  .model-button img {
2423
2468
  width: 40px;
2424
2469
  height: 40px;
@@ -2865,17 +2910,9 @@ textarea::placeholder {
2865
2910
  min-height: 38px;
2866
2911
  }
2867
2912
  @media (max-width: 740px) {
2868
- .topbar {
2869
- height: auto;
2870
- flex-wrap: wrap;
2871
- gap: 12px;
2872
- padding: 12px 16px;
2873
- }
2874
- .top-actions {
2875
- margin-left: auto;
2876
- flex-wrap: wrap;
2877
- gap: 8px;
2878
- }
2913
+ /* topbar layout lives in ONE place (the compact block in the ≤740 shell
2914
+ section above) — a wrapping auto-height header used to win the cascade
2915
+ here and eat a quarter of the screen. */
2879
2916
  .chat-header-actions {
2880
2917
  width: 100%;
2881
2918
  justify-content: flex-start;
@@ -3287,26 +3324,26 @@ select:focus {
3287
3324
  Engines without standardised zoom (Safari < 17.4) ignore it and fall back
3288
3325
  to the all-rem type scale at the bottom: text-only shrink, still coherent. */
3289
3326
  @media (max-width: 1599px) {
3290
- :root { zoom: 0.95; }
3291
- :root .shell { height: calc(100dvh / 0.95); }
3327
+ :root { zoom: 0.95; --uiz: 0.95; }
3328
+ :root .shell { height: var(--vvh, calc(100dvh / 0.95)); }
3292
3329
  }
3293
3330
  @media (max-width: 1199px) {
3294
- :root { zoom: 0.9; }
3295
- :root .shell { height: calc(100dvh / 0.9); }
3331
+ :root { zoom: 0.9; --uiz: 0.9; }
3332
+ :root .shell { height: var(--vvh, calc(100dvh / 0.9)); }
3296
3333
  }
3297
3334
  @media (max-width: 899px) {
3298
- :root { zoom: 0.85; }
3299
- :root .shell { height: calc(100dvh / 0.85); }
3335
+ :root { zoom: 0.85; --uiz: 0.85; }
3336
+ :root .shell { height: var(--vvh, calc(100dvh / 0.85)); }
3300
3337
  }
3301
3338
  @media (max-width: 740px) {
3302
- :root { zoom: 0.82; }
3339
+ :root { zoom: 0.82; --uiz: 0.82; }
3303
3340
  /* The shell IS the screen: fixed height, never scrolls — the topbar and
3304
3341
  the bottom nav are ordinary flex rows so they stay pinned, and the
3305
3342
  active pane (chat-scroll / inspector / tree drawer) scrolls inside.
3306
3343
  The old height:auto + overflow:visible let the DOCUMENT scroll, which
3307
3344
  carried the bottom bar away with the content (live report). */
3308
3345
  :root .shell {
3309
- height: calc(100dvh / 0.82);
3346
+ height: var(--vvh, calc(100dvh / 0.82));
3310
3347
  min-height: 0;
3311
3348
  overflow: hidden;
3312
3349
  }
@@ -3319,9 +3356,9 @@ select:focus {
3319
3356
  }
3320
3357
  }
3321
3358
  @media (max-width: 550px) {
3322
- :root { zoom: 0.78; }
3359
+ :root { zoom: 0.78; --uiz: 0.78; }
3323
3360
  :root .shell {
3324
- height: calc(100dvh / 0.78);
3361
+ height: var(--vvh, calc(100dvh / 0.78));
3325
3362
  min-height: 0;
3326
3363
  }
3327
3364
  .inspector {
@@ -3342,3 +3379,23 @@ select:focus {
3342
3379
  }
3343
3380
  }
3344
3381
  }
3382
+
3383
+ /* ── Keyboard: the form must survive the soft keyboard ────────────────────
3384
+ Two live failure modes when an input gets focus on a phone:
3385
+ 1. iOS auto-zooms the whole viewport when the focused control renders
3386
+ under 16px — under the ui zoom every input did, so the page "exploded".
3387
+ Raise inputs to a RENDERED 16px (16px / zoom in root coordinates).
3388
+ Scoped component styles have higher specificity, hence !important.
3389
+ 2. The shell must shrink to the space ABOVE the keyboard, not stay
3390
+ viewport-tall behind it. index.html declares
3391
+ interactive-widget=resizes-content (Android/Chrome: the layout viewport
3392
+ then resizes, so 100dvh follows); iOS never resizes its layout viewport,
3393
+ so main.ts measures visualViewport and feeds --vvh, which the shell
3394
+ heights above prefer over 100dvh. */
3395
+ @media (max-width: 1599px) {
3396
+ input,
3397
+ textarea,
3398
+ select {
3399
+ font-size: calc(16px / var(--uiz, 1)) !important;
3400
+ }
3401
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-durable",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
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": {