From eb37a64a5ae1c28bce0e7e995e3c076553dc068b Mon Sep 17 00:00:00 2001 From: Xylight Date: Tue, 24 Sep 2024 19:17:11 -0700 Subject: [PATCH] design: add more visual feedback to expandables --- src/lib/components/lemmy/SiteCard.svelte | 19 ++++++++++--------- .../lemmy/community/CommunityCard.svelte | 19 ++++++++++--------- src/lib/components/ui/Expandable.svelte | 6 +++++- 3 files changed, 25 insertions(+), 19 deletions(-) diff --git a/src/lib/components/lemmy/SiteCard.svelte b/src/lib/components/lemmy/SiteCard.svelte index 4078f3b1..9d2d793c 100644 --- a/src/lib/components/lemmy/SiteCard.svelte +++ b/src/lib/components/lemmy/SiteCard.svelte @@ -79,9 +79,7 @@ -
+
{#if taglines && taglines.length > 0} {/if} +
- + {$t('cards.site.about')} - +
+
- + {$t('cards.site.stats')} - +
{#if admins} +
- + {$t('cards.site.admins')} - + ({ id: a.person.id, diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index a9fceff7..eb1b98f9 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -161,22 +161,22 @@ /> -
+
+
- + {$t('cards.site.about')} - + +
- + {$t('cards.site.stats')} - +
{#if moderators && moderators.length > 0} +
- + {$t('cards.community.moderators')} - + ({ id: m.moderator.id, diff --git a/src/lib/components/ui/Expandable.svelte b/src/lib/components/ui/Expandable.svelte index c9d062eb..db729701 100644 --- a/src/lib/components/ui/Expandable.svelte +++ b/src/lib/components/ui/Expandable.svelte @@ -11,7 +11,7 @@
@@ -22,6 +22,10 @@ micro class="{open ? 'rotate-180' : ''} transition-transform" /> +