From 2c164ca548a9f28b0584da5e7811b6b7afebb0f1 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 16 Mar 2024 14:31:38 -0700 Subject: [PATCH] design: replace crosspost disclosure with expandable --- src/lib/components/ui/Expandable.svelte | 8 ++++---- src/routes/post/[instance]/[id=integer]/+page.svelte | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/components/ui/Expandable.svelte b/src/lib/components/ui/Expandable.svelte index 2ba7e8f6..b1384fe3 100644 --- a/src/lib/components/ui/Expandable.svelte +++ b/src/lib/components/ui/Expandable.svelte @@ -6,12 +6,12 @@
@@ -23,7 +23,7 @@ class="{open ? 'rotate-180' : ''} transition-transform" />
-
+
diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index ffe48552..8da8c7f3 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -47,6 +47,7 @@ import PostMedia from '$lib/components/lemmy/post/media/PostMedia.svelte' import { mediaType } from '$lib/components/lemmy/post/helpers.js' import Post from '$lib/components/lemmy/post/Post.svelte' + import Expandable from '$lib/components/ui/Expandable.svelte' export let data @@ -145,7 +146,7 @@
{#if $page.params.instance?.toLowerCase() != $instance.toLowerCase()} -

Warning

-

+

This URL is for a different instance than you're logged into. You probably won't be able to vote or comment.

@@ -213,12 +213,12 @@ />
{#if post.cross_posts?.length > 0} -
{post.cross_posts.length} @@ -231,7 +231,7 @@ {/each}
-
+ {/if}
{#if data.singleThread}