Skip to content

Commit

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

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

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

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

0 comments on commit 588acce

Please sign in to comment.