[web] Resources detail: Cost field label overlaps its value (verbose label in fixed-width column) #29
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_planner#29
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?
Symptom
In the Resources detail view (web UI), the Cost field's label overlaps its value — the label renders as "COST (E.G. 10K USD/MONTH OR …)" and runs over the "0.00 EUR" value (screenshot below).
Root cause
The resource
costfield'slabelwas set to the verbose'Cost (e.g. 10k USD, 5000 EUR)'(crates/hero_planner_web/src/index.html:750). The detail view renders the field label in a fixed 110px grid column withwhite-space:nowrap(.detail-field-label, lines 41–43), so the long label overflows the column and overlaps the value.The verbose text is a form hint mis-used as the label — and it's redundant: the
money-type input already shows its own placeholder ("e.g. 10k or 5000"), and the other money fields use short labels ("Amount").Fix
Shorten the label to
'Cost'(line 750). It fits the 110px column (no overlap); the form still hints the format via the money input's existing placeholder.Screenshot (before)
Fixed on
development(squash). Shortened the resourcecostfield label from'Cost (e.g. 10k USD, 5000 EUR)'to'Cost'(index.html:750) — the detail view's fixed 110px nowrap label column was overflowing into the value. The format hint is preserved by the money input's existing placeholder ("e.g. 10k or 5000").Browser-verified: the COST row now renders
Cost 0.00 EURwith no overlap (bounding-box check: label.right < value.left for all detail rows).Screenshot (after)