From c09460bd9b671ea8667d566d25329e40a66f2850 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Tue, 15 Aug 2023 16:03:13 -0700 Subject: [PATCH] feat: add option to resolve posts to your home instance --- src/lib/components/lemmy/post/PostVote.svelte | 17 +++++---- src/lib/components/ui/toasts/Toast.svelte | 35 +++++++++++-------- src/lib/components/ui/toasts/toasts.ts | 9 +++++ .../post/[instance]/[id=integer]/+page.svelte | 30 ++++++++++++++-- 4 files changed, 68 insertions(+), 23 deletions(-) diff --git a/src/lib/components/lemmy/post/PostVote.svelte b/src/lib/components/lemmy/post/PostVote.svelte index c0870419..ae39630c 100644 --- a/src/lib/components/lemmy/post/PostVote.svelte +++ b/src/lib/components/lemmy/post/PostVote.svelte @@ -75,7 +75,7 @@ vote == 1 ? $userSettings.revertColors ? '!text-orange-500' - : '!text-blue-500' + : '!text-blue-500 dark:!text-blue-400' : vote == -1 ? $userSettings.revertColors ? '!text-blue-500' @@ -84,28 +84,31 @@ -
+
- +
diff --git a/src/lib/components/ui/toasts/Toast.svelte b/src/lib/components/ui/toasts/Toast.svelte index aa481f9d..b2396ace 100644 --- a/src/lib/components/ui/toasts/Toast.svelte +++ b/src/lib/components/ui/toasts/Toast.svelte @@ -1,5 +1,6 @@