From e90ff9d5087515c909d79b516a4b3d2ef89824ff Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sat, 11 May 2024 16:15:42 -1000 Subject: [PATCH] feat: :sparkles: Markdown rendering improvements --- components/composer/modal.vue | 4 +- .../social-elements/notes/note-content.vue | 98 +++++++++++++++++++ components/social-elements/notes/note.vue | 65 +----------- package.json | 2 +- pages/[username]/[uuid].vue | 4 +- 5 files changed, 109 insertions(+), 64 deletions(-) create mode 100644 components/social-elements/notes/note-content.vue diff --git a/components/composer/modal.vue b/components/composer/modal.vue index 1e0ba3f..7ecb889 100644 --- a/components/composer/modal.vue +++ b/components/composer/modal.vue @@ -37,11 +37,13 @@ useListen("note:quote", async (note) => { useEvent("composer:quote", note); }); useListen("composer:open", () => { - open.value = true; + if (tokenData.value) + open.value = true; }); useListen("composer:close", () => { open.value = false; }); const client = useMegalodon(); +const tokenData = useTokenData(); const instance = useInstance(client); \ No newline at end of file diff --git a/components/social-elements/notes/note-content.vue b/components/social-elements/notes/note-content.vue new file mode 100644 index 0000000..d65f645 --- /dev/null +++ b/components/social-elements/notes/note-content.vue @@ -0,0 +1,98 @@ + + + + + \ No newline at end of file diff --git a/components/social-elements/notes/note.vue b/components/social-elements/notes/note.vue index 6438863..99840ae 100644 --- a/components/social-elements/notes/note.vue +++ b/components/social-elements/notes/note.vue @@ -13,36 +13,11 @@ -
- - -
-
-
-
-
- -
-
- -
-
-
- This note was tagged as containing sensitive - content - - {{ note.spoiler_text - }} - Show content -
+
+ class="mt-6 flex flex-row items-stretch disabled:*:opacity-70 [&>button]:max-w-28 disabled:*:cursor-not-allowed relative justify-around text-sm h-10 hover:enabled:[&>button]:bg-dark-800 [&>button]:duration-200 [&>button]:rounded [&>button]:flex [&>button]:flex-1 [&>button]:flex-row [&>button]:items-center [&>button]:justify-center">