From 9d72e1953f511706b6c582a81b4d7146de8cf057 Mon Sep 17 00:00:00 2001 From: moris Date: Thu, 3 Apr 2025 15:42:51 +0900 Subject: [PATCH] =?UTF-8?q?fallback=E3=82=92background=20image=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/(DefaultStyle)/[slug]/grid.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/(DefaultStyle)/[slug]/grid.svelte b/src/routes/(DefaultStyle)/[slug]/grid.svelte index 868e6cf..47cd4a5 100644 --- a/src/routes/(DefaultStyle)/[slug]/grid.svelte +++ b/src/routes/(DefaultStyle)/[slug]/grid.svelte @@ -14,7 +14,7 @@ {:else if emoji} thumbnail {:else} - ')}' alt="fallback"/> +
{/if}
{date.toLocaleDateString('sv-SE')}
@@ -61,6 +61,11 @@ .emoji { height: 70%; } + .fallback { + width: 100%; + height: 100%; + background: no-repeat center url('data:image/svg+xml,'); + } .tag{ position: absolute;