Skip to content

Commit

Permalink
LinkControl: Prevent horizontally long preview image from being stret…
Browse files Browse the repository at this point in the history
…ched vertically (#55156)
  • Loading branch information
t-hamano authored Oct 9, 2023
1 parent 0512fca commit 4ce1636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-editor/src/components/link-control/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ $preview-image-height: 140px;

img {
display: block; // remove unwanted space below image
max-width: 100%;
height: $preview-image-height; // limit height
max-height: $preview-image-height; // limit height
width: 100%;
height: 100%;
object-fit: contain;
}
}
}
Expand Down

0 comments on commit 4ce1636

Please sign in to comment.