Skip to content

Commit

Permalink
Post Featured Image: Don't display the scale control when the aspect …
Browse files Browse the repository at this point in the history
…ratio is original
  • Loading branch information
t-hamano committed Mar 7, 2023
1 parent 54d43c4 commit e4896f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const DimensionControls = ( {
units={ units }
/>
</ToolsPanelItem>
{ ( height || aspectRatio ) && (
{ ( height || ( aspectRatio && aspectRatio !== 'auto' ) ) && (
<ToolsPanelItem
hasValue={ () => !! scale && scale !== DEFAULT_SCALE }
label={ scaleLabel }
Expand Down

0 comments on commit e4896f0

Please sign in to comment.