dsh-mobile 0.8.8 → 0.8.9
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/CHANGELOG.md +15 -0
- package/CONTRIBUTORS.md +10 -0
- package/README.en.md +8 -6
- package/README.md +8 -6
- package/apps/mobile/README.md +19 -3
- package/apps/mobile/README.zh-CN.md +19 -3
- package/apps/mobile/release.json +3 -3
- package/docs/ATTACH_EXISTING_FRPS.en.md +1 -1
- package/docs/IROH.en.md +4 -4
- package/docs/IROH.md +4 -4
- package/docs/README.md +8 -1
- package/docs/TRUSTED_NETWORKS.en.md +2 -0
- package/docs/TRUSTED_NETWORKS.md +2 -0
- package/docs/WEB_PUSH.en.md +1 -1
- package/docs/WEB_PUSH.md +1 -1
- package/lib/client.js +191 -0
- package/lib/client.js.map +1 -1
- package/lib/index.mjs +2 -1
- package/lib/index.mjs.map +1 -1
- package/lib/mobile-layout.js +17 -4
- package/lib/mobile-layout.js.map +1 -1
- package/native/iroh-host/README.md +1 -1
- package/package.json +3 -2
- package/packages/question-fixes/package.json +1 -1
package/lib/mobile-layout.js
CHANGED
|
@@ -917,9 +917,22 @@ html,body,#root{width:100%;height:100%;overflow:hidden}
|
|
|
917
917
|
.dshm-drawer{position:fixed;z-index:70;inset:0 auto 0 0;box-sizing:border-box;width:56px;max-width:100%;padding-top:env(safe-area-inset-top);overflow:hidden;background-color:Canvas;background-image:linear-gradient(var(--dsw-alias-bg-layer-1,#f8fafc),var(--dsw-alias-bg-layer-1,#f8fafc));box-shadow:none;will-change:width;transition:width 240ms cubic-bezier(.22,1,.36,1),box-shadow 240ms ease}
|
|
918
918
|
.dshm-drawer[data-open=true]{width:min(88vw,340px);box-shadow:18px 0 46px rgb(15 23 42 / 18%)}
|
|
919
919
|
.dshm-drawer[data-open=false]{pointer-events:auto;visibility:visible}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
920
|
+
/* Slide the sidebar content only while opening or closing. A resting transform
|
|
921
|
+
would make this child the containing block for stock fixed-position surfaces
|
|
922
|
+
inside the sidebar and let the drawer's overflow clip them (issue #413: the
|
|
923
|
+
Cordis plugin panel anchors itself to the viewport to escape that clip). */
|
|
924
|
+
.dshm-drawer>*{width:100%!important;height:100%!important;opacity:.94;transition:opacity 160ms ease-out}
|
|
925
|
+
.dshm-drawer[data-open=true]>*{opacity:1;animation:dshm-drawer-slide-open 220ms cubic-bezier(.22,1,.36,1)}
|
|
926
|
+
.dshm-drawer[data-open=false]>*{width:56px!important;animation:dshm-drawer-slide-closed 220ms cubic-bezier(.22,1,.36,1)}
|
|
927
|
+
@keyframes dshm-drawer-slide-open{from{transform:translateX(-6px)}to{transform:translateX(0)}}
|
|
928
|
+
@keyframes dshm-drawer-slide-closed{from{transform:translateX(0)}to{transform:translateX(-6px)}}
|
|
929
|
+
/* The Cordis plugin panel opens from the sidebar footer as a stock fixed surface
|
|
930
|
+
(position:fixed, width:420px, anchored from its trigger) so the sidebar's
|
|
931
|
+
overflow cannot clip it. On phones the drawer must give it real containment:
|
|
932
|
+
span the viewport instead of the desktop width, sit above our drawer but below
|
|
933
|
+
the stock floating slot layer (300), and cap the height so its body scrolls
|
|
934
|
+
(issue #413). */
|
|
935
|
+
.dshm-shell:not([${WIDE_LAYOUT_ATTRIBUTE}="1"]) [data-cordis-panel]{position:fixed!important;inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px!important;width:auto!important;max-width:min(420px,calc(100vw - 16px))!important;max-height:min(60vh,calc(100dvh - 96px))!important;overflow-y:auto!important;z-index:210!important}
|
|
923
936
|
/* Folded icon rail: on narrow viewports the drawer is fixed, so give the main
|
|
924
937
|
content the same 56px offset the wide grid already provides. The width floor
|
|
925
938
|
keeps phone-width headers on their own inset; the band itself is the root
|
|
@@ -994,7 +1007,7 @@ body:has(.dshm-shell) :is(input,textarea,[contenteditable=true],[contenteditable
|
|
|
994
1007
|
dims and covers it. Only the wide grid needs this: on a phone the drawer is a
|
|
995
1008
|
floating overlay and must keep covering the conversation. */
|
|
996
1009
|
.dshm-shell[${WIDE_LAYOUT_ATTRIBUTE}="1"] .dshm-main{grid-area:1/2;z-index:1}
|
|
997
|
-
@media(prefers-reduced-motion:reduce){.dshm-drawer,.dshm-details,.dshm-scrim,.dshm-drawer>*,.dshm-main{transition:none!important}}
|
|
1010
|
+
@media(prefers-reduced-motion:reduce){.dshm-drawer,.dshm-details,.dshm-scrim,.dshm-drawer>*,.dshm-main{transition:none!important}.dshm-drawer>*{animation:none!important}}
|
|
998
1011
|
/* Touch adaptation changes control boxes, not invisible hit regions. Root opt-out
|
|
999
1012
|
retains pane geometry too; nested opt-out preserves a widget's own controls.
|
|
1000
1013
|
DSH's plugin cards open through a cardTitle/cardOpen button whose ::after
|