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 authored and andrewserong committed Sep 16, 2024
1 parent 45d33f0 commit cfcfa02
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 cfcfa02

Please sign in to comment.