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 31, 2023
1 parent a1f2679 commit 9116c6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,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 9116c6e

Please sign in to comment.