diff --git a/src/lib/SideBars/Sidebar.svelte b/src/lib/SideBars/Sidebar.svelte
index 012be298..239c60d9 100644
--- a/src/lib/SideBars/Sidebar.svelte
+++ b/src/lib/SideBars/Sidebar.svelte
@@ -73,6 +73,7 @@
}
let charImages: string[] = [];
+ let IconRounded = false
const unsub = DataBase.subscribe((db) => {
let newCharImages: string[] = [];
@@ -82,6 +83,9 @@
if (!isEqual(charImages, newCharImages)) {
charImages = newCharImages;
}
+ if(IconRounded !== db.roundIcons){
+ IconRounded = db.roundIcons
+ }
});
onDestroy(unsub);
@@ -117,7 +121,7 @@
}}
tabindex="0"
>
-
+
{:else}
@@ -132,7 +136,7 @@
}}
tabindex="0"
>
-
+
{/if}
{#if editMode}
diff --git a/src/lib/SideBars/SidebarAvatar.svelte b/src/lib/SideBars/SidebarAvatar.svelte
index c7250796..ac271354 100644
--- a/src/lib/SideBars/SidebarAvatar.svelte
+++ b/src/lib/SideBars/SidebarAvatar.svelte
@@ -1,6 +1,5 @@
@@ -13,7 +12,7 @@
style:width={size + "px"}
style:height={size + "px"}
style:minWidth={size + "px"}
- class:rounded-md={!$DataBase.roundIcons} class:rounded-full={$DataBase.roundIcons}
+ class:rounded-md={!rounded} class:rounded-full={rounded}
/>
{:then img}
{/await}
@@ -32,7 +31,7 @@
style:width={size + "px"}
style:height={size + "px"}
style:minWidth={size + "px"}
- class:rounded-md={!$DataBase.roundIcons} class:rounded-full={$DataBase.roundIcons}
+ class:rounded-md={!rounded} class:rounded-full={rounded}
/>
{/if}