Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/web/src/page/infra/kit/meta-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@
],
present.map((item, index) =>
h.span(
[h.Class("flex shrink-0 items-center gap-x-2")],
// The last item shrinks so an overflowing line ends in an ellipsis, not a clipped word.
[h.Class(cn("flex items-center gap-x-2", index === present.length - 1 ? "min-w-0" : "shrink-0"))],
[
...(index > 0 ? [h.span([h.Class("text-foreground-faint")], ["·"])] : []),
typeof item === "string" ? h.span([h.Class("max-w-[28ch] truncate")], [item]) : item,

Check notice on line 38 in apps/web/src/page/infra/kit/meta-line.ts

View check run for this annotation

Maple Review Bot / Maple / review

correctness: Only plain-string last items get the new ellipsis; node items still clip

Line 38 caps and truncates only plain strings, so a node last item shrinks without any `truncate` and the parent's `overflow-hidden` still cuts it mid-word — the new comment promises an ellipsis. The hosts sub-line's last item is `platformLabel` (`infra/hosts/list/view-table.ts:101`), so that table is unchanged.
],
),
),
Expand Down
Loading