From 67de983aac96e16ba085a2f5b18d3a5b0ceb8a05 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Mon, 3 Oct 2022 11:55:10 -0700 Subject: [PATCH] Fix links in spoilers --- common/util/tiptap-spoiler.ts | 2 +- web/components/editor.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/util/tiptap-spoiler.ts b/common/util/tiptap-spoiler.ts index 5502da58..c8944a46 100644 --- a/common/util/tiptap-spoiler.ts +++ b/common/util/tiptap-spoiler.ts @@ -39,7 +39,7 @@ export const TiptapSpoiler = Mark.create({ exitable: true, content: 'inline*', - priority: 200, // higher priority than other formatting so they go inside + priority: 1001, // higher priority than other formatting so they go inside addOptions() { return { diff --git a/web/components/editor.tsx b/web/components/editor.tsx index 5050a261..27e8ac45 100644 --- a/web/components/editor.tsx +++ b/web/components/editor.tsx @@ -343,7 +343,7 @@ export function RichContent(props: { TiptapSpoiler.configure({ spoilerOpenClass: 'rounded-sm bg-greyscale-2 cursor-text', spoilerCloseClass: - 'rounded-sm bg-greyscale-6 text-greyscale-6 cursor-pointer select-none', + 'rounded-sm bg-greyscale-6 text-transparent [&_*]:invisible cursor-pointer select-none', }), ], content,