From e80fb9d89a1afedede45e33f06b1d4c93c10956b Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Mon, 19 Apr 2021 22:13:35 +0800 Subject: [PATCH] Update sidebar --- src/components/Sidebar/Sidebar.svelte | 197 ++++++++++++---------- src/components/Sidebar/SidebarItem.svelte | 23 +-- 2 files changed, 122 insertions(+), 98 deletions(-) diff --git a/src/components/Sidebar/Sidebar.svelte b/src/components/Sidebar/Sidebar.svelte index 78cea8ef..1df6751e 100644 --- a/src/components/Sidebar/Sidebar.svelte +++ b/src/components/Sidebar/Sidebar.svelte @@ -50,97 +50,103 @@
- {#if !mobile} - - {/if} - {#if mobile} -
- -
- {/if} - - - - - - - - -
-
- {currentLocale.label} - {currentLocale.label} -
- {#each locales as locale} -
changeLocale(locale.id)} - > - {locale.label} - {locale.label} -
-
- {/each} -
+
+ {#if !mobile} + + {/if} + {#if mobile} +
+ +
+ {/if} + + + + + + + + +
+
+
+ {currentLocale.label} + {currentLocale.label} +
+ {#each locales as locale} +
changeLocale(locale.id)} + > + {locale.label} + {locale.label} +
+
+ {/each} +
+
+
-
diff --git a/src/components/Sidebar/SidebarItem.svelte b/src/components/Sidebar/SidebarItem.svelte index 974881a5..04ede699 100644 --- a/src/components/Sidebar/SidebarItem.svelte +++ b/src/components/Sidebar/SidebarItem.svelte @@ -13,6 +13,19 @@ } + +
+
+ {label} +
+ + {label} + +
+
+ - - -
-
- {label} -
- {label} -
-