fix(ui): stop the composer radius from clipping the first glyph
The inner textarea kept a 12px radius after its side padding was cleared, so the first character was cut into an arc. Only .composer textarea is now border-radius 0. The outer frame is unchanged. Verified: chat-reading-load-mobile.test.ts was 7 pass / 1 fail before the CSS change, then 8 pass / 0 fail / 0 cancelled. tsc --noEmit exit 0. npm run lint 0 errors. Co-Authored-By: Grok (agent loop)
This commit is contained in:
co-authored by
Grok (agent loop)
parent
804b6ee3f3
commit
6e6fae8d84
@@ -0,0 +1,27 @@
|
||||
# 进度 · 输入框第一个字被圆角裁掉(2026-10-13)
|
||||
|
||||
- 分支:`codex/composer-first-glyph-clip-20261013`(从当时的 `origin/staging` `804b6ee3f355f67015cde4d9bc42f2f79c3f267f` 新建)
|
||||
- 任务书:`docs/tasks/TASK-composer-first-glyph-clip-20261013.md`
|
||||
- 结论:内层输入框改为直角。外面的圆角框没动。普通聊天和生时校正共用这一个输入框。
|
||||
|
||||
## 做了什么
|
||||
|
||||
- `frontend/src/app/globals.css`:`.composer textarea` 增加 `border-radius: 0`。
|
||||
- `frontend/tests/chat-reading-load-mobile.test.ts`:锁住这条规则必须含 `border-radius: 0`。
|
||||
- `frontend/DESIGN.md`、`docs/BUG_HISTORY.md`(BUG-1311)、`docs/tasks/README.md`。
|
||||
- 开工时 `docs/BUG_HISTORY.md` 最大号是 BUG-1310,本单用 BUG-1311,没有被占用。
|
||||
|
||||
## 检查
|
||||
|
||||
| 检查 | 命令 | 结果 |
|
||||
| --- | --- | --- |
|
||||
| 合同测试(改样式前) | `node node_modules/tsx/dist/cli.mjs --test tests/chat-reading-load-mobile.test.ts` | 8 条,7 过,1 失败,cancelled 0。失败的就是新断言 |
|
||||
| 合同测试(改样式后) | 同上 | 8 条,8 过,0 失败,cancelled 0 |
|
||||
| 类型检查 | `frontend\node_modules\.bin\tsc --noEmit -p frontend` | 退出码 0 |
|
||||
| lint | `npm run lint`(frontend) | 退出码 0,0 error,125 warning(原有,未改) |
|
||||
| 全量前端测试 / Python 快速门 / test:db | 未跑 | 任务书不要求;未动数据库 |
|
||||
|
||||
## 偏离
|
||||
|
||||
- 没有。真机还没看,清单在 `docs/testing/composer-first-glyph-clip-20261013.md`。推送后的 40 位 SHA 写在 issue #52 的执行回报里。
|
||||
- 本轮开始时评论接口在 Windows PowerShell 5.1 里把评论列表粘成一条,计划被滤掉,误发过一条「需拍板」。接口修好后读到计划,那条作废,本轮按任务书改完。标签「需拍板」已去掉。
|
||||
@@ -134,7 +134,7 @@
|
||||
|
||||
| 任务书 | 进度 | 主题 | 状态 | 落点 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `TASK-composer-first-glyph-clip-20261013.md` | — | **输入框第一个字被圆角裁掉(agent 循环 issue #52)**:`Textarea` 原语自带 12px 圆角,`.composer textarea` 清了边框与左右内边距却没清圆角,浏览器按圆角裁滚动内容,第一个字左缘被裁成圆弧;只在 `.composer textarea` 加 `border-radius: 0`,原语不动。执行方 Grok。BUG-1311 | 待领取 | `codex/composer-first-glyph-clip-20261013` |
|
||||
| `TASK-composer-first-glyph-clip-20261013.md` | `PROGRESS-composer-first-glyph-clip-20261013.md` | **输入框第一个字被圆角裁掉(agent 循环 issue #52)**:`Textarea` 原语自带 12px 圆角,`.composer textarea` 清了边框与左右内边距却没清圆角,浏览器按圆角裁滚动内容,第一个字左缘被裁成圆弧;只在 `.composer textarea` 加 `border-radius: 0`,原语不动。执行方 Grok。BUG-1311 | 待验收 | `codex/composer-first-glyph-clip-20261013` |
|
||||
| `TASK-consult-card-full-source-20261007.md` | `PROGRESS-consult-card-full-source-20261007.md` | **对话数据卡与报告同源 + 领域综合判断表**:事业卡只有约 7,600 字符、无自然代表星、无大运主星关系、D10 联动只能补取、补取上限 1;全 12 领域;综合判断表、参与清单(不止 D1/D9,含精度闸)、补取 3 次、资料目录均已确认;KP 不上卡、不联网、不接书籍语料;排在 sync6 与报告单之后 | 验收未通过(`35dafd1e`,见 fix-20261009) | `codex/consult-card-full-source-20261007` |
|
||||
| `TASK-consult-card-full-source-fix-20261009.md` | `PROGRESS-consult-card-full-source-fix-20261009.md` | **对话卡同源修复**:缓存键无日期致当前大运冻结、整卡 37.5K(每格带内部路径)、星照整列 blocked(资料库其实有出处)、前端测试手写数据、无预热;合入前用临时 key 跑模型 A/B 与生平回测 | F1–F5 已验收,F6 未过(见 fix2) | `codex/consult-card-full-source-20261007` |
|
||||
| `TASK-consult-card-full-source-fix2-20261009.md` | `PROGRESS-consult-card-full-source-fix2-20261009.md` | **对话卡同源第二轮**:齐达内事业被「水星=说写算」带偏致严重冲突 1→3;事业清单加「代表星只看力量受冲、不按星性猜职业」后重跑回测(≤1 才合入);预热改为不占重计算名额 | 已验收并快进合入 staging(2026-10-09,产品按严重冲突 ≤ 1 放行;剩余 1 次见 career-type-residual) | `codex/consult-card-full-source-20261007` |
|
||||
|
||||
Reference in New Issue
Block a user