fix(tickets): AssetPicker inline-edit chip fits inside DetailItem row, no duplicate label (PMS-344 follow-up) #196
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
psa-systems/mokosh-apps!196
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/pms-344-asset-picker-detailitem-layout"
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?
Two layout bugs in the ticket-detail Asset row. The AssetPicker's chip view always rendered its own "Asset" label, but the DetailItem wrapper already renders one on the left side of the row, so the value cell got a duplicate "Asset" label and the chip box dropped below it onto the next row (visibly overlapping Company). Conditionally suppress the picker's label when the parent passes an empty string, and mount it from the ticket detail editor with
label: "", mirroring how the Status/Priority/Assigned-To Select editors already do it.The chip box itself had no width constraint, so even after the label fix it would have sized to its content and overflowed the DetailItem value column. Added
w-full min-w-0on the chip wrapper,flex-1 min-w-0on the value text column, andml-2on the button column so the long asset name and uuid truncate cleanly inside the dd cell. DetailItem's dd is nowflex-1 min-w-0so the value cell grows to fill the row width after the label; the right-anchored Select dropdowns are visually unchanged because their content stays small. Switched the row alignment toitems-startso the multi-line chip aligns to the top of the label rather than the (now meaningless) baseline.#PMS-344