fix(web): align spacing values to 4px grid #71
Reference in New Issue
Block a user
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?
Ref:
docs/STYLE.md§ SpacingBase unit is 4px. All spacing must be multiples of 4. The codebase has ~40 instances of non-aligned values.
Padding violations (not 4px multiples):
0.1rem(1.6px) — TagInput.tsx:125, :1750.2rem(3.2px) — SettingsPage.tsx, SchemasPage.tsx, AppShell.tsx0.3rem(4.8px) — SettingsPage.tsx, ProjectsPage.tsx, SchemasPage.tsxMargin violations:
0.6rem(9.6px) — EditItemPane.tsx:1870.3remgap (4.8px) — PropertiesTab.tsx:139Height violations (below 4px):
height: 2(2px) — FileDropZone.tsx:193height: 1(1px) — CreateItemPane.tsx:581borderRadius: 1(1px) — FileDropZone.tsx:195, :204marginTop: 2(2px) — FileDropZone.tsx:196Fix: Round all spacing to nearest 4px multiple. For 1-2px elements (dividers/progress bars), use standard
1px solidborders or4pxheight minimums as appropriate.