Skip to content

手机评论页:记录名长的时候和中间的「评论」标题叠在一起 #36470

Closed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36062(评论专题)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定:只影响观感,不挡操作)。

维护者说过的(2026-11-22)

  • 「现在更新最新的代码,验收开发成果」
  • 协调席汇报验收发现的缺陷后,维护者:「bug立卡」。

现状(主干 6a35635a33(cloud e9da58ce77),本机托管环境,浏览器实测,账号是系统管理员,手机宽度 375)

标题重叠

  • 打开客户「青岛海辰食品集团有限公司」的记录页,点右上角评论图标进评论整页。
  • 顶部左边是返回箭头加记录名,中间是「评论」两个字。记录名有 12 个字,一直写到中间,和「评论」叠在一起,两边都读不清。
  • 点进一串回复后的那一页(左边「评论」、中间「评论串」)没有这个问题。

要做的

  1. 左边的记录名放不下时截断加省略号,不能压到中间的标题上。

不做的

  • 不改这一页的其他布局。

验收

  • 375 宽下,记录名 12 个汉字以上的记录:评论整页顶部记录名被截断,「评论」两个字完整可读,两者不重叠。
  • 记录名很短时(如 4 个字):显示完整,和改动前一样。
  • PR 正文附长名和短名各一张截图。

协调席自己加的

  • 「截断加省略号」这个做法是协调席提的;如果实现上更合适的是只留返回箭头不写记录名,请在 PR 里说明。

Activity

  1. added
    bug
    priority:p2
    domain:ui
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    通知记录 · 2026-11-22T13:07Z

    维护者 2026-11-22:「bug立卡」;此前:「后续 ux 专题立卡之后都通知 7号座位。」本卡按此通知席位 repo:objectstack#7,随后在它的信箱 #36199 里发一条。

  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · a child the coordinator filed under #36062, measured in the browser → p2 as set by the coordinator · size S.

  4. added
    pm:queue
    on Nov 22, 2026
  5. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Claim: PM loop round 6 (area:ux topic child of #36062)
    Session: session_01ADHkmRY38EZf38Yy3zthbY
    Account: os-steve
    Branch: claude/issue-36470-phone-comment-title
    Worktree: objectstack-issue-36470
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: area:ux
    File surface: the phone full-page comment view's top bar (the component that renders the back arrow + record name + centred 「评论」 title, under ui/packages/**) and its test; .changeset/ (stop on breach; explain in the report)
    Container & model: XS, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — layout defect
    Order: the maintainer, verbatim 「你开始 接 area:ux 专题任务,只处理 p1 p2 ,7号座位只处理在手任务,你接手其他」 (2026-11-22T14:49Z, this seat's project thread)
    Thread-read: 7080050694
    Premise: the card's 375-wide browser measurement (record name of 12 CJK characters overlaps the centred title; the thread sub-page does not).
    Serial constraints cleared: no open PR touches the comment page top bar (open PRs on ui/packages/app-shell read 2026-11-22T14:53Z: #36478 phone bottom bar, #36438 side preview, #36456 record header star — none in the comment view); seat 7 does not hold this card.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  7. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY
    os-dev-report

    {
      "issue": 36470,
      "status": "done",
      "branch": "claude/issue-36470-phone-comment-title",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36508",
      "session": "session_01ADHkmRY38EZf38Yy3zthbY",
      "premise_still_valid": true,
      "summary": "Premise held and reproduced: CommentsPage (ui/packages/plugin-detail) draws one header for list and thread, a minmax(0,1fr) auto minmax(0,1fr) grid; the start-aligned back button sized to fit-content whose floor is its unbreakable truncate label, so a long record name overflowed its bounded column under the centred title. The thread page shares the markup and only looked fine because its label is short. Fix is one class, max-w-full on the back button, so the label ellipsizes; short names lay out unchanged. Kept the name rather than arrow-only (it names where Back returns; dropping it changes layout the card rules out).",
      "tests": "Real Chromium at 375 wide on the header markup/classes read from CommentsPage.tsx with Tailwind v4 compiled from that source: long 12-char name before = button right 202 / title left 172, overlap true, not truncated; after = 164 / 172, overlap false, truncated true; short 4-char name 90 / 172 identical before and after. New describe 'CommentsPage — the top bar' in CommentsPage.test.tsx pins header grid cols, back button max-w-full + justify-self-start, label truncate on list and thread. Local vitest of that file NOT MEASURED, reason: first run exit 1 at import resolution (Failed to resolve @objectstack/spec/system, dist unbuilt); the closure build '@object-ui/plugin-detail^...' got VERDICT queue-timeout (exit 99) four times (holder pid 17598, pnpm --filter @objectstack/dogfood test, held >4200s). Declared narrowing: CI Test UI runs it. No ablation (class-structure pin, jsdom has no layout). Head 6fd375bec.",
      "gates": "dispatch-gates --commands on head 6fd375bec: 38 derived; --ran with exit codes: 38 accounted, 37 run, 1 NOT-MEASURED. 36 exit 0. pnpm check:type-check-debt exit 3 PREREQUISITE NOT MET (lock not acquired) = NOT MEASURED. pnpm --dir ui exec vitest run scripts/ exit 1 at import resolution (Cannot find package @objectstack/spec/ui, spec dist unbuilt) = NOT MEASURED, not a red. Extra: pnpm check:changeset-fixed exit 0. PR check-runs: in_progress at report time, not awaited.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — git push (branch, 3 pushes); relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees POST) via fleet-write run 45041317255; os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/36470/comments via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted: screenshots requested by the card could not be attached to the PR body (no image upload path through the relay); measured box table given instead"]
    }
  8. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

    Landed: PR #36508 merged and closed this card. pm:dispatched is cleared in the same stroke; domain:ui, area:ux and the priority stay.

  9. removed
    pm:dispatched
    on Nov 22, 2026
  10. added a commit that references this issue on Nov 23, 2026
    e4e3bcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions