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