enh: emoji folder icon

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-04 02:50:50 +04:00
1 parent e42ee34672
commit b70c0f36c0
10 files changed
+119 -42

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<script>
import { WEBUI_BASE_URL } from '$lib/constants';
import { shortCodesToEmojis } from '$lib/stores';
export let shortCode;
export let className = 'size-4';
</script>
{#if $shortCodesToEmojis[shortCode]}
<img
src="{WEBUI_BASE_URL}/assets/emojis/{$shortCodesToEmojis[shortCode].toLowerCase()}.svg"
alt={shortCode}
class={className}
loading="lazy"
/>
{:else}
<div>
{shortCode}
</div>
{/if}