feat: change icons

This commit is contained in:
2024-01-03 01:26:39 +01:00
parent a15d5dde38
commit 0e57e810e0
7 changed files with 12 additions and 11 deletions

View File

@@ -31,7 +31,7 @@
class:right={info.variant === "right"}
use:title={{title: tooltip}}
>
{info.icon ?? info.id ?? `0x${info.code.toString(16)}`}
{info.icon ?? info.display ?? info.id ?? `0x${info.code.toString(16)}`}
</kbd>
{:else if display === "inline-keys"}
{#if !info.icon && info.id?.length === 1}
@@ -44,7 +44,7 @@
class:icon={!!info.icon}
use:title={{title: tooltip}}
>
{info.icon ?? info.id ?? `0x${info.code.toString(16)}`}</kbd
{info.icon ?? info.display ?? info.id ?? `0x${info.code.toString(16)}`}</kbd
>
{/if}
{/if}