From 8e03d5a6f9978bffac5a3f4b5754e824b9eebc98 Mon Sep 17 00:00:00 2001 From: sevichecc <91365763+Sevichecc@users.noreply.github.com> Date: Fri, 3 Feb 2023 23:37:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E2=AC=86=EF=B8=8F=20merge=20with=20up?= =?UTF-8?q?steam=20https://github.com/importantimport/urara/commit/a8e5c55?= =?UTF-8?q?2284bcde119a3f2db595b120d51bb9120?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/components/prose/img.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/components/prose/img.svelte b/src/lib/components/prose/img.svelte index 0c079867..4ff12631 100644 --- a/src/lib/components/prose/img.svelte +++ b/src/lib/components/prose/img.svelte @@ -7,7 +7,7 @@ h: number } - const sources = import.meta.glob(['/static/**/*.{jpg,jpeg,png,webp,avif}', '!/static/assets'], { + const sources = import.meta.glob(['/src/static/**/*.{jpg,jpeg,png,webp,avif}', '!/src/static/assets'], { query: { format: 'avif', quality: '80', @@ -24,7 +24,7 @@ export let alt: string = src export let loading: 'eager' | 'lazy' = 'lazy' export let decoding: 'async' | 'sync' | 'auto' = 'async' - let source: Image[] | undefined = sources[`/static${src}`] + let source: Image[] | undefined = sources[`/src/static${src}`] {#if source} @@ -34,4 +34,4 @@ {:else} -{/if} +{/if} \ No newline at end of file