Skip to content

Commit

Permalink
force photos not to crop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlalchand committed Jul 4, 2024
1 parent e98142e commit 83bc639
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/PhotographyCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ const { image } = Astro.props;
---

<div class="photography-card">
<img src={image} alt="Photography" class="w-full h-full object-cover" />
<img src={image} alt="Photography" class="w-full h-auto" />
</div>

<style>
.photography-card {
display: flex;
justify-content: center;
align-items: center;
}

img {
width: 100%;
height: 100%;
height: auto;
}
</style>

0 comments on commit 83bc639

Please sign in to comment.