[feat] added none icon
This commit is contained in:
BIN
public/none.webp
Normal file
BIN
public/none.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 624 B |
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user