Skip to content

Commit

Permalink
Merge pull request #191 from DaleStudy/sehwan/189-incorrect-aspect-ratio
Browse files Browse the repository at this point in the history
Fixed incorrect aspect ratio issue with object-fit
  • Loading branch information
nhistory authored Aug 1, 2024
2 parents 05ccd0a + b8d1cab commit 0e4943c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Image extends HTMLElement {
return css`
img {
display: block;
object-fit: contain;
box-shadow: 2px 2px 4px 0 var(--bg-300);
}
`;
Expand Down
1 change: 1 addition & 0 deletions components/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class Step extends BaseStepElement {
width: auto;
height: 40px;
margin: 20px 0;
object-fit: contain;
@media only screen and (min-width: 768px) {
width: 60px;
Expand Down

0 comments on commit 0e4943c

Please sign in to comment.