UI: labels and headers cut with "..." (guild, guild war, academy, ranking)

未关闭
#3,674 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
64/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
frontend

调研方向

Start by opening apps/client-next/tools/ui-gallery and rendering the listed entries (guild-roster, inspect:guild-war-declaration, breadth:academy-master) to see each clipped label. Then read foundation/rendering/ui-glyphs.ts: layoutGlyphs invokes the native ellipsis and resolveTextOverlaps swaps in the shortened run, so decide per window whether the authored rect or the repair is wrong. Done means the labels fit inside their boxes under the Experimental "Fit window labels" option while the option off still reproduces the original output.

由索引模型根据 Issue 内容生成。

描述

area: client bug priority: high

Found in a full sweep of the UI gallery (apps/client-next/tools/ui-gallery). Many labels and column headers are cut with "..." where the text should fit or the native draws differently.

Gallery entries:

  • guild-empty, guild-roster: "Guild ma..." (guild master label); the master icon is drawn over its "...". The roster header shows both "Level" and a lowercase "level" column.
  • inspect:guild-war-declaration, inspect:guild-war-confirmation, reach:guild-war-agreement, breadth:guild-union: "Compe...", "Number o...", "Retained ...", "Distribute...".
  • breadth:academy-master, Academy panel: "Lv 8..." column, "Dismiss" header.
  • Academy Matching: "Recr..." filter label, "Graduate"/"Member" headers run together.
  • Job ranking: "Ranking" / "Experience" headers clipped.

To do: fix the presentation so the text stays inside its box and clear of its neighbours.

Cause found: the "..." is the port's own overlap repair, not native. foundation/rendering/ui-glyphs.ts layoutGlyphs says the native ellipsis (7831D0) is not invoked by a plain CIFStatic, and that applying it is "an intentional port overlap repair" (resolveTextOverlaps swaps in the shortened run when a label's ink would enter a neighbour). So each "Compe..." is a static the original draws in full and overlapping. Decide per window whether the authored rects or the repair is wrong.

Owner rule (2026-11-16): retail's own overflow and misalignment are bugs, not behaviour to copy. Fix these even where retail draws them the same way, on by default under the Experimental "Fit window labels" row (off is the original).

主要语言
Go
星标
97
派生
61
平均合并
4 小时 14 分钟
30 天内合并 PR
913

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

opensro-dev/opensro 的其他 Issue

查看 opensro-dev/opensro 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。