dsh-mobile-flow 0.4.0 → 0.4.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/README.md +0 -1
- package/README.zh.md +0 -1
- package/lib/client.js +0 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,6 @@ On viewports ≤720px (the same breakpoint the official question card uses):
|
|
|
20
20
|
4. **Slim edges** — the content-layer paddings that keep the transcript, header, input card, and confirmation cards well off the screen edges (16–32px per side) shrink to a slim 4px side inset (8px top), reclaiming most of the wasted width without the cramped feel of full-bleed. The page shell itself never adds whitespace; the gaps come entirely from these paddings.
|
|
21
21
|
5. **No auto-focus on session switch** — the stock UI returns focus to the input box on every mount / session switch (a desktop convenience), which pops the on-screen keyboard over half the screen on phones. In narrow viewports the programmatic focus is swallowed; tapping the input box still focuses it normally.
|
|
22
22
|
6. **Workspace row actions always visible** — the trailing buttons on workspace and session rows (the ⋯ menu with rename/delete and the + for a new session in that workspace) surface on hover only; touch has no hover, so narrow viewports show them whenever the sidebar list is rendered.
|
|
23
|
-
7. **Drawer semantics for the sidebar** — the stock layout keeps the conversation column rendered and interactive in a squeezed ~86px strip beside the expanded sidebar; taps aimed at long titles graze that strip, land on the input box, and pop the IME over half the screen (reading as the sidebar vanishing). While the sidebar is expanded on a narrow viewport that strip ignores pointers.
|
|
24
23
|
|
|
25
24
|
Desktop (wide viewports) is completely unaffected.
|
|
26
25
|
|
package/README.zh.md
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
4. **纤细边距** —— 消息区、会话头部、输入卡、确认卡片与屏幕边缘之间的内容层 padding(每边 16–32px)收窄为左右 4px、顶部 8px 的纤细边距,收复大部分被浪费的宽度,又不像完全贴边那样局促。页面外壳本身不产生空白,间隙完全来自这些 padding。
|
|
21
21
|
5. **切会话不自动聚焦** —— 官方在每次挂载/切换会话时把焦点还给输入框(桌面便利设计),手机上会弹出输入法占掉半屏。窄屏时拦截这类程序化聚焦;你主动点输入框时照常聚焦。
|
|
22
22
|
6. **workspace 行操作按钮常显** —— 分组行与会话行尾部的按钮(⋯ 菜单含重命名/删除、+ 在该 workspace 新建会话)官方仅在悬停时显示;触屏没有悬停,窄屏下侧边栏列表渲染时常显这两个按钮。
|
|
23
|
-
7. **侧边栏抽屉语义** —— 官方布局在侧边栏展开时仍渲染会话列(被挤成旁边 ~86px 窄条且可交互);点长标题时手指擦过窄条命中输入框,弹出输入法占半屏(看起来就像侧边栏消失)。窄屏下侧边栏展开时该窄条不再响应点击。
|
|
24
23
|
|
|
25
24
|
桌面端(宽视口)完全不受影响。
|
|
26
25
|
|
package/lib/client.js
CHANGED
|
@@ -83,18 +83,6 @@ window.__ModuleLoader__.load({
|
|
|
83
83
|
" [class*='_sessionRow'] [class*='_time'] {",
|
|
84
84
|
" display: none !important;",
|
|
85
85
|
" }",
|
|
86
|
-
" /* 6) Drawer semantics: while the sidebar is expanded on a narrow",
|
|
87
|
-
" viewport the stock grid keeps the center column rendered and",
|
|
88
|
-
" interactive in a squeezed ~86px strip beside it. Taps aimed at",
|
|
89
|
-
" long workspace titles graze that strip, land on the input box,",
|
|
90
|
-
" pop the IME, and the viewport collapse reads as the sidebar",
|
|
91
|
-
" vanishing. The frame drops data-sidebar-collapsed while wide, so",
|
|
92
|
-
" :not(:has()) marks the expanded state; disable pointer events on",
|
|
93
|
-
" the strip for real drawer behavior. _centerCol is unique to",
|
|
94
|
-
" ui-layout (verified against shipped bundles). */",
|
|
95
|
-
" body:not(:has([data-sidebar-collapsed])) [class*='_centerCol'] {",
|
|
96
|
-
" pointer-events: none !important;",
|
|
97
|
-
" }",
|
|
98
86
|
"}",
|
|
99
87
|
].join("\n");
|
|
100
88
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mobile-flow",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Mobile in-flow composer for the DeepSeek Harness Web UI: on narrow (≤720px) screens the input bar and AI confirmation cards scroll with the page instead of pinning to the viewport floor, edges slim down, session switches no longer auto-focus the input, and workspace row actions stay visible. Client-side CSS overlay plus a narrow-only focus guard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|