Skip to content

Commit

Permalink
Featured Image Panel: Align text and icons horizontally to avoid clip…
Browse files Browse the repository at this point in the history
…ping (#62842)

* Featured Image Panel: Align text and icons horizontally to avoid clipping

* Apply rounded corner to drop zone

Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
  • Loading branch information
4 people authored and gutenbergplugin committed Jun 26, 2024
1 parent 60e586f commit b5d75a0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/editor/src/components/post-featured-image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@
opacity: 1;
}
}

.components-drop-zone__content {
border-radius: $radius-block-ui;
}

// Align text and icons horizontally to avoid clipping when the featured image is not set.
&:has(.editor-post-featured-image__toggle) .components-drop-zone .components-drop-zone__content-inner {
display: flex;
align-items: center;
gap: $grid-unit-10;

.components-drop-zone__content-icon {
margin: 0;
}
}
}

.editor-post-featured-image__toggle,
Expand Down

0 comments on commit b5d75a0

Please sign in to comment.