You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 35dfd54
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ui): recover the text that truncate hides (#288)
Follow-up sweep after the landing hero. Grepped all 25 `truncate` uses in
`.tsx`, then measured each in a browser rather than trusting the class list —
`truncate` is usually correct, and the landing bug was specific: the hidden
text was needed verbatim and nothing could recover it.
Measured, not assumed. The worst case is not mobile:
settings store, 1440px value 267px shown, 519px hidden (66%)
description 267px shown, 226px hidden (46%)
doctor, 375px migration msg up to 26px hidden (15%)
The settings row hides two thirds of a realistic connection string on a
desktop monitor, with no `title` and no way to read it without opening the
editor — so the list cannot be scanned for the value you are looking for.
Adds `title` to the cases where the value is arbitrary-length and the row is
the only place it appears: settings value + description, migration messages,
user names + addresses, in-flight upload filenames, and the admin card's url
(its only disambiguator when two tools share a label).
`title` is a partial remedy — it does nothing on touch. It is the right one
here because these are scanning surfaces where the layout should stay a fixed
grid; the full value stays reachable through the row's own detail route, and
the tooltip removes the need to travel for a glance.
Deliberately unchanged:
- `CopyableId` — already correct, and the model for the rest: working copy
handler, plus `title` and `aria-label` carrying the full value. The landing
hero had hand-rolled a worse version of this component.
- Permission keys in the role editor — measured 0px clipped across all 19 at
375px; the longest is 23 characters and the column fits it.
- Sidebar identity, module names, status labels, the branding preview, the
vendored shadcn sidebar, and the dev-only placeholder fixture: short,
fixed-vocabulary, decorative, or your own identity.
- Doctor's "run command" block truncates four hardcoded short commands that
do not clip at any width tested. It has no copy affordance, which is a
missing feature rather than hidden text, so it is left for its own change.
`Doctor.tsx` is now exactly at the 300-line cap. The next edit there needs a
split, not a shorter comment.
Verified: make lint clean, 2152 passed / 2 skipped, 127 JS passed. The
settings fix re-measured against the same connection string that exposed it —
still clipped by design, now carrying the full text in `title`.
Claude-Session: https://claude.ai/code/session_01JJtbN97VhtDr28Fuy5JKEF
0 commit comments