Commit a3134eb
committed
docs(skill): prefer min-w over hard width for fixed-width hug controls
get_design_context already surfaces layoutSizingHorizontal FIXED + width, and
the grounding guide maps FIXED→explicit, so codegen pins the width rather than
collapsing a button to its content (the failure other Figma MCP servers hit).
Add the finer call: Figma has no native min-width, so a designer expresses
"at least this wide, but let longer/i18n text grow" as a FIXED width on a
control that would otherwise hug (button/badge/chip/tag). Emit those as min-w-*,
reserving a hard w-* for genuinely fixed sizes (sidebars, fixed cards, avatars).1 parent 24dc2d6 commit a3134eb
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
72 | 79 | | |
73 | 80 | | |
74 | 81 | | |
| |||
0 commit comments