Skip to content

Commit

Permalink
Ensure media view preview has minimum width
Browse files Browse the repository at this point in the history
  • Loading branch information
roborourke authored Oct 21, 2024
1 parent 094e8d6 commit 6437a73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/media-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ wp.media.view.Attachment.Library = AttachmentView.extend( {
canvas.style.position = 'absolute';
canvas.style.inset = '0 0 0 0';
canvas.style.backgroundColor = '#fff';
img.parentElement.style.minWidth = '150px';
img.parentElement.appendChild( canvas );
img.parentElement.removeChild( img );

Expand Down

0 comments on commit 6437a73

Please sign in to comment.