diff --git a/src/lib/components/lemmy/SiteCard.svelte b/src/lib/components/lemmy/SiteCard.svelte index 28cb3a49..6be6de09 100644 --- a/src/lib/components/lemmy/SiteCard.svelte +++ b/src/lib/components/lemmy/SiteCard.svelte @@ -81,13 +81,13 @@ {#if admins} Admins
{#each admins as admin} - + import Avatar from '$lib/components/ui/Avatar.svelte' + import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' import type { Community } from 'lemmy-js-client' import { Button } from 'mono-svelte' import { flip } from 'svelte/animate' @@ -14,7 +15,7 @@ class="inline-flex w-full" animate:flip={{ duration: 500, easing: expoOut }} > -
-
+
{follow.title} {new URL(follow.actor_id).hostname}
- +
{/each} diff --git a/src/lib/components/ui/sidebar/ProfileButton.svelte b/src/lib/components/ui/sidebar/ProfileButton.svelte index 7c6895fd..bc384e4d 100644 --- a/src/lib/components/ui/sidebar/ProfileButton.svelte +++ b/src/lib/components/ui/sidebar/ProfileButton.svelte @@ -2,6 +2,7 @@ import { goto } from '$app/navigation' import { page } from '$app/stores' import { profile, setUserID, type Profile } from '$lib/auth.js' + import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte' import { Button } from 'mono-svelte' @@ -11,7 +12,7 @@ let switching: boolean = false - + diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index 60c012ac..98ace4f1 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -1,6 +1,7 @@ @@ -7,7 +8,12 @@ color="tertiary" alignment="left" on:click - class="hover:bg-slate-100 font-normal {$$props.class}" + class="hover:bg-slate-100 font-normal {$userSettings.expandSidebar + ? '' + : 'max-lg:!p-1 [&>*]:max-lg:!justify-center'} {$$props.class}" > +
+ +
diff --git a/yarn.lock b/yarn.lock index 9380bc00..ec8af97f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3043,10 +3043,10 @@ mlly@^1.2.0, mlly@^1.4.0: pkg-types "^1.0.3" ufo "^1.1.2" -mono-svelte@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-1.2.5.tgz#3abd04c51aed26c0daca572904ef6fea16f24ed3" - integrity sha512-eYr1evL3nFyad1BgHVVy9eIKWNJwud55uBipTCMwhj/rueZzsNswNujjXJgConQEo4wXxZ/hPHRrFZPmNd+W1w== +mono-svelte@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/mono-svelte/-/mono-svelte-1.3.1.tgz#182355ecf56c18b9f2808c085b71e39530dfc7f7" + integrity sha512-GBNHEUchH2WuYb29f3SKdFj7CeqkIXLykL1g7M41CoR4hSyaMOxWtTmR7owZHOTvQ0ABZ7e76Qa0U945A/dcqg== dependencies: "@floating-ui/core" "^1.5.0" svelte-floating-ui "^1.5.3"