Skip to content

Commit

Permalink
Fix stuck width from resize at prior align
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Dec 29, 2024
1 parent 0afd04f commit b4f4b53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/block-library/src/file/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ function FileEdit( { attributes, isSelected, setAttributes, clientId } ) {
<div { ...blockProps }>
{ displayPreviewInEditor && (
<ResizableBox
size={ { height: previewHeight } }
size={ { height: previewHeight, width: '100%' } }
minHeight={ MIN_PREVIEW_HEIGHT }
maxHeight={ MAX_PREVIEW_HEIGHT }
minWidth="100%"
// The horizontal grid value must be 1 or else the width may snap during a
// resize even though only vertical resizing is enabled.
grid={ [ 1, 10 ] }
Expand Down

0 comments on commit b4f4b53

Please sign in to comment.