Skip to content

Commit

Permalink
Add 10% inner saftey distance to all labels
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion committed May 28, 2024
1 parent cff7e92 commit 779f2bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/block-editor/blocks/label-printing/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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-"] {
Expand Down
5 changes: 5 additions & 0 deletions src/block-editor/blocks/label-printing/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}
}

Expand Down

0 comments on commit 779f2bf

Please sign in to comment.