diff --git a/src/block-editor/blocks/label-printing/editor.scss b/src/block-editor/blocks/label-printing/editor.scss index d3b1665..1ffb77c 100644 --- a/src/block-editor/blocks/label-printing/editor.scss +++ b/src/block-editor/blocks/label-printing/editor.scss @@ -18,6 +18,10 @@ overflow: hidden; transition: width, height 0.3s cubic-bezier(0.9, 0.26, 0.18, 0.77); margin-left: 2vw; + + // padding: 20px; // safety disatnce + padding: calc(var(--label-printing-height)*.1) calc(var(--label-printing-width)*.1); + box-sizing: border-box; } .wp-block-group.alignwide[class*="is-style-label-overview-"] { diff --git a/src/block-editor/blocks/label-printing/style.scss b/src/block-editor/blocks/label-printing/style.scss index 3ce53ae..8cb52dd 100644 --- a/src/block-editor/blocks/label-printing/style.scss +++ b/src/block-editor/blocks/label-printing/style.scss @@ -24,6 +24,11 @@ body.is-label-printing { overflow: hidden; max-height: var(--label-printing-height) !important; max-width: var(--label-printing-width) !important; + + // padding: 20px; // safety disatnce + padding: calc(var(--label-printing-height)*.1) calc(var(--label-printing-width)*.1); // safety disatnce + box-sizing: border-box; + } }