[feat] added none icon

This commit is contained in:
kwaroran
2023-05-21 20:25:49 +09:00
parent 843ad49842
commit d174aa0796
2 changed files with 13 additions and 30 deletions

BIN
public/none.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

View File

@@ -108,7 +108,6 @@
<SidebarIndicator
isActive={$selectedCharID === i && sideBarMode !== 1}
/>
{#if charimg !== ""}
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div
on:click={() => {
@@ -121,24 +120,8 @@
}}
tabindex="0"
>
<SidebarAvatar src={getCharImage($DataBase.characters[i].image, "plain")} size="56" rounded={IconRounded} />
<SidebarAvatar src={charImages[i] ? getCharImage(charImages[i], "plain") : "/none.webp"} size="56" rounded={IconRounded} />
</div>
{:else}
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
<div
on:click={() => {
changeChar(i);
}}
on:keydown={(e) => {
if (e.key === "Enter") {
changeChar(i);
}
}}
tabindex="0"
>
<SidebarAvatar size="56" src="https://via.placeholder.com/150" rounded={IconRounded} />
</div>
{/if}
{#if editMode}
<div class="mt-2 flex flex-col">
<button