The CV kind chip has almost no padding at its end, because .chip is shaped around a button it does not have #185
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Postulo/postulo#185
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?
Observation
On Documents → CVs, the kind tag on each card sits hard against its own right edge. The
text nearly touches the border, and the chip reads lopsided next to the twelve pixels of
space on its left.
documents/cv_list.html:31:Why
.chipis deliberately asymmetric. Fromapp.css:Those two pixels are not a mistake — they are where the remove button goes.
app.jsbuilds the chips it was designed for:
The button supplies the visual space at the end, so the class supplies almost none. A chip
without a button gets the 2px and nothing to fill it.
It is a trap, and one caller already fell into it and climbed out
Three places use
.chip, and they disagree:app.jschipFor()jobs/partials/company_row.html:40class="chip py-0 **pe-3** text-xs"— patched by handdocuments/cv_list.html:31Two of the three uses have no button. The company row's
pe-3is the same fix this needs,written once already by somebody who hit the same thing and did not change the class.
Which suggests fixing the class, not the third caller
Adding
pe-3here would work and would leave the trap for the fourth caller. The shapethat matches how
.chipis actually used is the opposite of what it does now:.chippads both ends properly, so a chip with only text is right by default..chip-remove— or a modifier alongside it — takes the end padding back, since the buttonis the thing that replaces it.
Then
company_row.htmldrops itspe-3andcv_list.htmlneeds no change at all.Worth checking while in there
py-0on both static chips overrides.chip'spadding-block, so these are tightervertically than a chip is meant to be as well. The two static callers agree with each other
on that, so it may be deliberate; it is worth deciding rather than inheriting.
padding-inline-*), and thefix must stay logical rather than becoming
pr-3.CONTRIBUTING.mdforbids the physicalutilities and the template lint enforces it.
npm run build:css.Landed on
0.3.0as5adc95b27.Fixed in the class rather than the third caller: a chip pads both ends and
.chip-removetakes its own end back with-me-2.5. The company row'spe-3workaround is gone, and the test that pinnedps-3/pe-0.5now asserts the intent its own docstring states.