Skip to content

Commit

Permalink
Adjust image width/height
Browse files Browse the repository at this point in the history
  • Loading branch information
jketcham committed Aug 24, 2023
1 parent 4631fe6 commit 07c7787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/index.django
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="grid grid-cols-1 my-auto gap-4 p-4 text-amber-800">
<div class="grid gap-4 grid-flow-row md:p-0 md:grid-flow-col my-auto max-w-5xl">
<div class="md:row-span-3 border-solid border-current border-2">
<picture class="block w-full md:w-96">
<picture class="block w-full md:w-96" style="aspect-ratio: 4/5;max-inline-size: 100%;block-size: auto;object-fit: cover;object-position: top center;">
<source srcset="/images/home_photo.webp" type="image/webp">
<img src="/images/home_photo.jpg" alt="" loading="eager" fetchpriority="high">
<img src="/images/home_photo.jpg" alt="" loading="eager" fetchpriority="high" height="480" width="384">
</picture>
</div>

Expand Down

0 comments on commit 07c7787

Please sign in to comment.