Skip to content

Commit

Permalink
Update image dimensions in Entry and +page components
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Jan 19, 2024
1 parent 8233baa commit fd1ec31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/Entry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

<li class="mb-4 md:mb-0 last-of-type:mb-0">
<a href="{baseLocaleUrl}/notes/{slug}">
<figure class="rounded-md mb-10 h-[200px]">
<figure class="rounded-md mb-4">
<img
alt={title}
class="rounded-md"
class="rounded-md object-cover h-[220px]"
src={previewImageUrl}
width="350"
height="100"
Expand Down
4 changes: 4 additions & 0 deletions src/routes/[[lang=lang]]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@
src={note.cover}
class="rounded-t-2xl"
alt={note.title}
height="200px"
width="100%"
itemprop="image"
/>
<figcaption class="px-5">
Expand Down Expand Up @@ -233,6 +235,8 @@
<img
src={note.cover}
alt={note.title}
height="200px"
width="100%"
class="md:w-2/5 object-cover rounded-l-2xl"
itemprop="image"
/>
Expand Down

0 comments on commit fd1ec31

Please sign in to comment.