disable: comment out em/rem unit options, keep only px and mm for print
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 20s

Margins: px + mm only. Font sizes: px only.
em/rem buttons are commented out, not deleted, for potential future use.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-24 14:16:54 +01:00
parent de3bb2a274
commit b5b495d478
5 changed files with 38 additions and 38 deletions

View file

@ -18,7 +18,7 @@ export function useCssSync() {
* Extract a numeric CSS value with unit
* Returns { value: number, unit: string } or null
*/
const extractNumericValue = (selector, property, allowedUnits = ['px', 'em', 'rem', 'mm']) => {
const extractNumericValue = (selector, property, allowedUnits = ['px', 'mm']) => { // ['px', 'em', 'rem', 'mm']
const block = store.extractBlock(selector);
if (!block) return null;
@ -38,7 +38,7 @@ export function useCssSync() {
* Extract margin/padding shorthand (handles 1 or 4 values)
* Returns { simple: { value, unit } } or { detailed: { top, right, bottom, left } }
*/
const extractSpacing = (selector, property, allowedUnits = ['mm', 'px', 'rem']) => {
const extractSpacing = (selector, property, allowedUnits = ['mm', 'px']) => { // ['mm', 'px', 'rem']
const block = store.extractBlock(selector);
if (!block) return null;