Dashboard: Truncated card titles should wrap to 2 lines instead of clipping #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Shipment card titles use
truncate(CSSoverflow: hidden; text-overflow: ellipsis; white-space: nowrap), which clips long names like "Harder Global Network GmbH Michael Harder" to "Harder..." even though there is vertical room in the card to show more. Information is lost unnecessarily.Implementation
File:
frontend/src/pages/Dashboard.tsx—ShipmentCardcomponent, line ~53.Change:
To:
line-clamp-2(Tailwind utility for-webkit-line-clamp: 2) allows up to two lines before ellipsing, which fits within the existing card height. Theleading-tightprevents the card from growing excessively on two-line titles.Acceptance criteria
Brand identity alignment
Shipment cards are the core brand object and should read like structured parcel labels. The human-readable shipment name is priority #1 in the brief, so clipping it to a single truncated line undermines the intended hierarchy.
Brand-compliant implementation notes
Additional acceptance criteria
Migrated from GitHub issue #2: https://github.com/bullitt186/trackbox/issues/2
Original author: @bullitt186
Original created: 2026-06-27T13:22:07Z
Original labels: ux
Implemented in commit
bd6b0e7. Changed the card title fromtruncatetoline-clamp-2 leading-tight. Long shipment names now wrap to two lines before ellipsing, keeping the primary identifier readable. Short names are unaffected. Card spacing adjusts naturally via the existing flexbox layout.