From 6516e99fe0fdd17e7abb7ac397f5f883c045763f Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Fri, 25 Aug 2023 16:02:54 -0700 Subject: [PATCH] feat: make crossposts collapsible --- .../post/[instance]/[id=integer]/+page.svelte | 21 ++++++++++++------- tailwind.config.js | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 37c87bdb..9981712e 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -188,12 +188,19 @@ /> {#if post.cross_posts?.length > 0} -
- - Crossposts - {post.cross_posts.length} - - +
+ + + Crossposts + {post.cross_posts.length} + + +
{#each post.cross_posts as crosspost}
@@ -213,7 +220,7 @@
{/each}
-
+ {/if}
diff --git a/tailwind.config.js b/tailwind.config.js index ae9fff65..e9e20740 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -19,7 +19,7 @@ export default { }, colors: { 'zinc': { - 700: '#313139', + 700: '#34343b', 800: '#1f1f24', 900: '#121215' }