Skip to content

Commit

Permalink
Remove scrolling of empty image blocks (#59305)
Browse files Browse the repository at this point in the history
Co-authored-by: torounit <toro_unit@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
Co-authored-by: hanneslsm <hanneslsm@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
  • Loading branch information
5 people authored Feb 23, 2024
1 parent 9908a33 commit 0ea8901
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
// Provide special styling for the placeholder.
// @todo: this particular minimal style of placeholder could be componentized further.
.wp-block-image.wp-block-image {

&:not(.is-selected) .components-placeholder__fieldset {
// Show only is selected.
display: none;
}

// Show Placeholder style on-select.
&.is-selected .components-placeholder {
// Block UI appearance.
Expand Down

0 comments on commit 0ea8901

Please sign in to comment.