Repository navigation
💄 web: 控制台移动端适配第一轮:组织详情可滚、发送键不再被挤出、会话头一层、文件预览整屏 - #25
Merged
Merged
Conversation
- 热力图点按读数改用自己的计数 key(中文「N 个对话」、英文分单复数),不再借统计卡的「N 条」 - 输入框底栏 leadingControls 外层加 shrink-[999],缺口先落在模型 chip 上,上下文用量只在 chip 收无可收时才让位(决策 7 的收缩顺序) - 设备行展开后名字带 min-w-0 break-words,没有空格的长名字也完整折行 - design.md:更正组织页一节里两处与代码不符的描述,补上底栏收缩顺序
执行目标区末尾的 role=status sr-only 播报是 position:absolute,详情滚动容器 (OrgAgentDetail.tsx)此前没有任何定位祖先,播报的 static position 因此按初始 包含块(html 根)计算,落在滚动内容深处对应的文档坐标上,把 document 撑到 1133px(视口只有 844px)。移动端滚到详情区最后一个区块后继续下滑,手势会 链到文档去滚,顶栏/详情头/底部 tab 因而被推走。 给滚动容器本身加 relative 作为定位祖先,播报(以及以后可能出现的其他绝对定位 后代)的包含块落回这个容器内部,不再外溢。加 data-testid 锚住这条结构性断言, jsdom 量不了布局。
- AppShell:immersive 与 index 槽并存,沉浸形态的安全区让在内容页里的 main 上 - 新对话草稿走壳的 immersive,顶部安全区不再在 chat-mobile-compose 上重复让一次(只剩「从项目里挑」那屏自己让) - 组织:移动端详情头下的错误提示与索引列一起改成无线、text-destructive-text;详情列父容器桌面也成了 flex-col,min-h-0 改为不分端 - 会话头、找不到/读不到等状态壳的头部、移动端文件预览层头部去掉 border-b / bg-card,预览层底色改 bg-sheet - 模型 chip 保留 min-w-0,用 field-fill 新底色
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.
改了什么
控制台移动端适配第一轮(只改 server 宿主,共享包不动、不重新 pin)。规格:
docs/specs/2026-09-21-server-mobile-gaps.md。min-h-0+ 滚动区relative收住 sr-only 播报,文档高度 = 视口);失败提示出现在当前这屏的详情头下;「+」两项菜单含「新建顶层部门」AppShell immersive:不画页面顶栏与底部 tab,一层 68px 会话头(返回 · 两行标题 · Agent · 项目 · 机器 + 在线 · 时间 · ⋯)docs/design.md同步记下上述壳与页面规则。怎么验的
make test:Go 全绿,前端 124 文件 / 1990 用例全过;make lint-frontend0。cb971d21)后复验成立。未观察到 / 已知
ddf3dfdf)上桌面与手机都不出预览入口——既有问题,另开一轮排查。这四条目前只由单测覆盖。new-conversation.test.tsx/chat.test.tsx各偶发过一次失败,单跑均通过。不在本轮
设置页供应商模型行与模型表、Agent 后端行、任务表单、消息统计行、hover/右键/双击专属操作、上下文用量触屏点开——都在共享包里,第二轮先改
agentre-ui再 pin。