Spaces:
Running
Running
Lab: truncate long variant names in the list, keeping the hash
#4
by volodymyrsvirhun - opened
Variant ids like v01_desk_with_drawers_147755 overflowed the left list's pills.
Now they truncate in the middle (v01_desk_with_…_147755): the trailing hash stays visible, since it is what tells variants apart (e.g. Containers has two v01_beverage_can_* variants). Hovering an item shows the full id. Short ids (wardrobes, scenes) are unchanged.
Only index.html changes: 4 CSS lines plus the item label markup. Tested on a local copy of the Space: no names overflow in any tab, no console errors.
volodymyrsvirhun changed pull request status to merged