Design call: should an anchored rule preserve proportion or weight? #156
Labels
No labels
build-dist
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design#156
Loading…
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?
@ville — a genuine fork, deliberately not resolved in code. Both presses ship so you can see the difference rather than take my word for it.
anchor+extent(#154) let a pull occupy part of an element, which is whatplate.ui.line-horizontalwas drawn for — a hand-drawn rule at 33.6:1. Until #154 it was an orphan: registered, emitting a handle, referenced by no press, because the model could not hold it.The fork
Top row —
extent: autoderives the band from the plate's own ratio: 11px at 360 wide, 19px at 640, 30px at 1024 (measured, not predicted). The drawing's proportions hold at any width — so the band's weight tracks the container. In a 1600px hero it is a 47px slab.Bottom right — an explicit
extent: 6holds the weight and lets the proportions go. It is also lifted 12px off the edge byregistration: [0, 12]alone, which is why placement needed no fourth field.What I want decided
Which should a UI divider default to? Right now
autois the default for an anchored pull, on the reasoning that a derived number beats a guessed one. But a divider arguably wants constant weight — a hairline stays a hairline regardless of panel width.This is the same anisotropy tension as #155, wearing a different coat: preserve the drawing, or preserve the mark. I do not think there is a right answer independent of what the rule is for.
Options as I see them:
autoas the default — proportions first; authors opt into a fixed weight.autofor decorative bands.press.ruled-panelandpress.ruled-panel-fixedship one of each today, so whichever way you go there is already a working example to point at.(Render pinned to #154's commit; that PR is green and awaiting merge.)