Skip to content

Commit

Permalink
Put replace media flow in own group depending on contentOnly or not
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Sep 12, 2024
1 parent eba5eb7 commit 4de24d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/block-library/src/image/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ export default function Image( {
const mediaReplaceFlow = isSingleSelected &&
! isEditingImage &&
! lockUrlControls && (
<BlockControls group="other">
// For contentOnly mode, put this button in its own area so it has borders around it.
<BlockControls group={ isContentOnlyMode ? 'inline' : 'other' }>
<MediaReplaceFlow
mediaId={ id }
mediaURL={ url }
Expand Down

0 comments on commit 4de24d2

Please sign in to comment.