feat: save subscribed community collapsed state on refresh
This commit is contained in:
1 parent
fb92da4a27
commit
a5287b03e8
3 files changed
+3
-5
No files matched your search
@@ -83,7 +83,7 @@
|
||||
<hr class="border-slate-200 dark:border-zinc-800 my-1" />
|
||||
{/if}
|
||||
|
||||
<Expandable open>
|
||||
<Expandable bind:open={$userSettings.expandCommunities}>
|
||||
<span
|
||||
slot="title"
|
||||
class="px-2 py-1 w-full {$userSettings.expandSidebar
|
||||
|
||||
@@ -48,6 +48,7 @@ interface Settings {
|
||||
removed: boolean
|
||||
}
|
||||
expandSidebar: boolean
|
||||
expandCommunities: boolean
|
||||
notifications: {
|
||||
enabled: boolean
|
||||
pollRate: number
|
||||
@@ -101,6 +102,7 @@ export const defaultSettings: Settings = {
|
||||
removed: toBool(env.PUBLIC_HIDE_REMOVED) ?? false,
|
||||
},
|
||||
expandSidebar: toBool(env.PUBLIC_EXPAND_SIDEBAR) ?? true,
|
||||
expandCommunities: true,
|
||||
notifications: {
|
||||
enabled: false,
|
||||
pollRate: 60 * 1000,
|
||||
|
||||
Reference in new issue
Block a user