diff --git a/src/lib/components/ui/tabs/FilterTabs.svelte b/src/lib/components/ui/tabs/FilterTabs.svelte deleted file mode 100644 index ba9370a7..00000000 --- a/src/lib/components/ui/tabs/FilterTabs.svelte +++ /dev/null @@ -1,73 +0,0 @@ - - -
- {#if filters.size > 0} -
-
- -
-
- {/if} - {#each uniqueIds as id} - - {/each} -
- -{@render children?.({ items: filteredItems })} diff --git a/src/lib/lemmy/ProfileAvatar.svelte b/src/lib/lemmy/ProfileAvatar.svelte index d3600089..e30338ac 100644 --- a/src/lib/lemmy/ProfileAvatar.svelte +++ b/src/lib/lemmy/ProfileAvatar.svelte @@ -21,7 +21,7 @@ {#if profile}
- {#if profile.avatar && !profile.color} + {#if profile.avatar} {profile.username} {/snippet} - i.instance}> - {#snippet children({ items })} - { - removing.account = acc.detail - removing.shown = !removing.shown - }} +
+ {#each $profileData.profiles as profile, index (profile.id)} +
- {#snippet children({ action })} - {#each items as profile, index (profile.id)} -
{ + if (profile.id != $currentProfile?.id) { + switching = profile.id + await setUserID(profile.id) + switching = -69 + } + }} + size="square-md" + color={profile.id == $currentProfile?.id ? 'primary' : 'ghost'} + loading={switching == profile.id} + disabled={switching == profile.id} + rounding="pill" + > + {#snippet prefix()} + {#if profile.id == $currentProfile?.id} + + {:else} + + {/if} + {/snippet} + +
+ +
+ {profile.username} + + {profile.instance} + +
+
+
+ + {#snippet target()} + + {/snippet} +
+ -
-
- -
- -
- -
-
- {profile.username} - - {profile.instance} - -
-
-
- - {#snippet target()} - - {/snippet} -
- - -
- (profile.color = undefined)} - > - {#snippet prefix()} - - {/snippet} - {$t('account.resetColor')} - - {#if settings.debugInfo} - { - debugProfile = profile - debugging = !debugging - }} - > - {#snippet prefix()} - - {/snippet} - {$t('common.debug')} - - {/if} - {#if !LINKED_INSTANCE_URL || profile.user} - action(profile)} - color="danger-subtle" - > - {#snippet prefix()} - - {/snippet} - {$t('account.logout')} - - {/if} -
-
- {/each} - {/snippet} - - {/snippet} - + {#snippet prefix()} + + {/snippet} + + +
+ {#if settings.debugInfo} + { + debugProfile = profile + debugging = !debugging + }} + > + {#snippet prefix()} + + {/snippet} + {$t('common.debug')} + + {/if} + {#if !LINKED_INSTANCE_URL || profile.user} + { + removing.account = profile + removing.shown = !removing.shown + }} + color="danger-subtle" + > + {#snippet prefix()} + + {/snippet} + {$t('account.logout')} + + {/if} + +
+ {/each} +
{/if}