Repository navigation
手机浏览器上能用:左侧栏改抽屉、对话区占满宽度、设置全屏 (#34) - #121
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Fn9pJBaFXzt4R575ecQeRi
joesmart
force-pushed
the
joesmart/feat-mobile-web
branch
from
October 24, 2026 20:00
29117b7 to
2f3aa29
Compare
Closed
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.
改了什么
接着 #111(#94)的右栏抽屉做,没有另起一套:
inert,Tab 走不进去。PanelScrim泛化成Scrim,左右两个抽屉共用。100vw × 100dvh,不留圆角),关闭按钮 40px。为什么断点取 752
和 #111 用的是同一条规则:对话区不窄于 480px。右栏抽屉的断点是
--sidebar-w + --panel-w + 480 = 1152,侧栏抽屉照着算就是--sidebar-w + 480 = 752。两个断点都从spacing.css的 token 读,CSS 里只认 JS 打上的.is-narrow/.is-nav-open,不写死数字。实测 768 宽时侧栏常驻,对话区还有 496px,今天页能正常排开,所以平板竖屏保留常驻侧栏;390 走抽屉。
Esc 归属
同一时刻只挂一个 Esc 监听:侧栏抽屉开着时 Esc 只关它;有浮层(设置、新建项目)时遮罩不挂监听;右栏抽屉开着时顶栏也设
inert,键盘摸不到「打开侧栏」,两个抽屉不会同时开着。怎么验证的
新加
packages/web/e2e/mobile-web.spec.ts,共 11 条:390×844 亮暗两套各三条(抽屉选群后收起、对话区占满、发消息、无横向滚动;今天页审批按钮可见可点;设置全屏能关),390 宽另有群里审批卡、遮罩/Esc/Tab、任务详情、跨断点不回弹四条,768 宽一条,1280 宽回归一条。e2e/fixtures.ts的openSettings在有「打开侧栏」按钮时先拉开抽屉,否则 375px 下那三条老用例(04-settings、10-usage、p3-mcp-local-only)点不到账号按钮。Closes #34
🤖 Generated with Claude Code
https://claude.ai/code/session_01Fn9pJBaFXzt4R575ecQeRi