Skip to content

Commit

Permalink
feat: optimization of images
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Jul 17, 2023
1 parent 3192526 commit 4af3c64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Entry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<li class="mb-4 md:mb-0 last-of-type:mb-0">
<figure class="rounded overflow-hidden pb-4 flex justify-center items-center h-[150px]">
<img alt={title} src={previewImageUrl} />
<img alt={title} src={previewImageUrl} width="350" />
</figure>
<header>
<h1 class="text-xl py-4 font-extrabold cursor-pointer hover:text-link hover:underline">
Expand Down
2 changes: 1 addition & 1 deletion src/routes/[lang=lang]/notes/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</svelte:head>

<article
class="my-2 prose max-w-full dark:prose-p:text-white prose-strong:text-green-500 dark:prose-headings:text-white prose-green dark:prose-code:text-white"
class="my-2 prose max-w-full dark:prose-p:text-white prose-strong:text-green-500 dark:prose-headings:text-white prose-green dark:prose-code:text-white dark:prose-li:text-slate-100 prose-li:text-slate-900"
>
<img src={data.note.cover} alt={data.note.title} class="h-96 w-full object-cover" />
<Markdown md={data.markdown.parent} />
Expand Down

0 comments on commit 4af3c64

Please sign in to comment.