Skip to content

Commit

Permalink
KAD-3830 min height/width for svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbert-hernandez committed Jan 7, 2025
1 parent e569609 commit ed56941
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blocks/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ figure.wp-block-kadence-image:not(.wp-block) {
}
}
}

.wp-block-kadence-image.image-is-svg {
min-width: 20px;
min-height: 20px;
}
// This is necessary for the editor resize handles to accurately work on a non-floated, non-resized, small image.
.wp-block-kadence-image .components-resizable-box__container {
display: inline-block;
Expand Down
4 changes: 4 additions & 0 deletions src/blocks/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@
.wp-block-kadence-image figure {
margin: 0;
}
.wp-block-kadence-image figure.image-is-svg {
min-width: 20px;
min-height: 20px;
}
.kb-image-has-overlay {
position: relative;
}
Expand Down

0 comments on commit ed56941

Please sign in to comment.