Repository navigation
fix(remote-access): 修复 DSH 0.2.2 上手机远程界面布局错位(关联 #294) - #295
Merged
freedomkk-qfeng merged 2 commits intoNov 7, 2026
Merged
Conversation
DSH 0.2.2 opens the sidebar as a drawer below 768px: a mask now precedes the sidebar column, DSH seats its own opener in shell.leading, picks close the drawer, and the settings dialog fills the screen with its title moved out of nav. The plugin's position-based selectors then hid the open drawer, squeezed the conversation to zero width and stacked a second set of corner buttons over DSH's. Keep only what a remote device needs on top of DSH: view-only settings and the iOS input zoom guard. Drop the client injections and peers that only the phone layout used, and require DSH 0.2.2-rc.1 or later, whose own phone layout this now relies on; DSH 0.2.1 hosts keep 0.1.4.
This was referenced Nov 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #294
问题与修改
升级到 DSH 0.2.2-rc.1 后,远程设备在手机宽度下:
原因:DSH 0.2.2 在 768px 以下自带手机布局:侧栏抽屉和遮罩、
shell.leading里的打开按钮、选中会话或面板后关闭抽屉、全屏设置页和横排分区、触屏下显示会话行操作。插件原先为 DSH 0.2.1 写的手机布局按 DOM 位置选择元素;0.2.2 在侧栏前插入了遮罩元素,设置页标题也移出了nav,这些选择器因此命中了侧栏和设置内容。修改:
phone.tsx移到新的device.tsx。验证
npm run check(类型检查、构建、77 个测试)通过;tests/package-maintenance.test.mjs通过;tests/plugin-peer-compatibility.test.mjs的独立插件检查以官方 DSH 0.2.2-rc.1 运行时为宿主通过。node scripts/check-web.ts(Chromium、WebKit;中继在根路径、带路径前缀、被门户 iframe 嵌入三种部署):配对、经 Service Worker 加载、RPC 与流、上传下载、断线重连、移除设备均通过。data-eduwork-remote):390px 0px 0px,侧栏visibility: hidden。interactive-widget=resizes-content,Android 弹出软键盘时页面随之变矮。在输入框输入后把视口高度从 844 缩到 470 模拟,输入框保持焦点并留在可见区域内,恢复后正常。iOS 未测(没有可用的真机或模拟器)。兼容性与后续事项
>=0.2.2-rc.1 <0.3.0-0:手机布局依赖 DSH 0.2.2 自带的实现,DSH 0.2.1 宿主继续使用 0.1.4。ui-layout、ui-session、ui-workspace、ui-primitives注入和 peer,package-lock.json已同步。core.lock.json指向 65ea896)都内置 DSH 0.2.2-rc.1 与本插件 0.1.4,两者都受此问题影响。source-receipt.json。修复要在插件发布新版本、公版更新锁定后进入桌面产品,学校版随后更新core.lock.json。