Repository navigation
feat(blocks): StylePanel row hints and one label width - #514
Conversation
Rows take a `hint` (an info icon with a tooltip beside the label). The Root's
`hints` turns on an English default for every built-in row from the new
`labels.hints`, and `hint={false}` drops one. The Root's `labelWidth` gives
every inline label the same width so controls line up and long or translated
labels truncate instead of wrapping; it is ignored while `stacked`.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016gNJtzSPqS85sXMVcAaizx
… set Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtzSPqS85sXMVcAaizx
|
The Compare visual check fails on one shot, Generated by Claude Code |
|
"Build, typecheck and test" fails on 1949ec8 in one test: This isn't caused by the row hints change. The growth came in with today's preview merge: the regenerated catalog adds the The fix is either a shorter purpose line somewhere in the catalog, or moving the cap with a note, as the test's comment already does for earlier growth. Another session is merging into this branch right now, so I'm not pushing on top of it. Generated by Claude Code |
HOLD for 3.1. Retarget to
previewonce 3.0.0 is out. It's additive and doesn't break anything.Lorant asked for this in the style panel rework: every colour row gets the same label width so labels never wrap, and each setting gets a tooltip that explains it. Tavilio already does this in its own code (Tavilio#233). This PR brings it into core.
What changes
hinton any row. It shows an info icon with a tooltip beside the label.StylePanelRowtakes one, and so does every built-in row.hintson Root /StylePanel. Turns on an English tooltip for every built-in row. The text comes from the newlabels.hints, which can be translated like the other labels. A row's ownhintwins over the default, andhint={false}drops it.labelWidthon Root /StylePanel. Sets one width for every label that sits beside its control (for example"8rem"). The label doesn't shrink and truncates instead of wrapping. It's ignored whilestacked.StylePanelLabelWidthtype. The AI harness JSON has been regenerated.Nothing changes when none of these props are passed.
Tests
style-panel-hints.test.tsxcovers the defaults off/on, a row's own hint vsfalse, the shared width, and stacked mode.Generated by Claude Code