From ac0a571ecc89f9d153a389be271a275d1f756df3 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 10 Apr 2025 14:48:03 +0200 Subject: [PATCH] fix: :bug: Fix broken Note UIs --- components/composer/composer.vue | 1 - components/notes/action-button.vue | 15 +++++ components/notes/actions.vue | 27 +++----- components/notes/attachments.vue | 2 +- components/notes/content-warning.vue | 26 ++++++++ components/notes/content.vue | 65 +++---------------- components/notes/header.vue | 4 +- components/notes/note.vue | 4 +- components/notes/overflow-guard.vue | 49 ++++++++++++++ components/notes/prose.vue | 12 ++++ components/notes/reblog-header.vue | 15 +++-- components/profiles/avatar.vue | 2 +- components/ui/alert/Alert.vue | 3 +- components/ui/alert/AlertDescription.vue | 2 +- components/ui/alert/AlertTitle.vue | 2 +- components/ui/alert/index.ts | 8 ++- components/ui/card/Card.vue | 2 +- components/ui/dialog/DialogContent.vue | 6 +- .../ui/dropdown-menu/DropdownMenuItem.vue | 2 +- pages/[username]/[uuid].vue | 2 +- 20 files changed, 154 insertions(+), 95 deletions(-) create mode 100644 components/notes/action-button.vue create mode 100644 components/notes/content-warning.vue create mode 100644 components/notes/overflow-guard.vue create mode 100644 components/notes/prose.vue diff --git a/components/composer/composer.vue b/components/composer/composer.vue index bcaa043..65bab80 100644 --- a/components/composer/composer.vue +++ b/components/composer/composer.vue @@ -67,7 +67,6 @@ diff --git a/components/notes/action-button.vue b/components/notes/action-button.vue new file mode 100644 index 0000000..08bd1e3 --- /dev/null +++ b/components/notes/action-button.vue @@ -0,0 +1,15 @@ + + + diff --git a/components/notes/actions.vue b/components/notes/actions.vue index 80366c8..f047677 100644 --- a/components/notes/actions.vue +++ b/components/notes/actions.vue @@ -1,24 +1,17 @@ @@ -26,11 +19,11 @@ diff --git a/components/notes/content.vue b/components/notes/content.vue index 9d6a337..5ddb12a 100644 --- a/components/notes/content.vue +++ b/components/notes/content.vue @@ -1,34 +1,9 @@ - - diff --git a/components/notes/header.vue b/components/notes/header.vue index 9b017ab..a248d6a 100644 --- a/components/notes/header.vue +++ b/components/notes/header.vue @@ -22,13 +22,13 @@ author.display_name }} - + @{{ username }} {{ instance && "@" }}{{ instance }} - + · {{ timeAgo }} diff --git a/components/notes/note.vue b/components/notes/note.vue index 29ab336..9ad60dd 100644 --- a/components/notes/note.vue +++ b/components/notes/note.vue @@ -1,6 +1,6 @@ + + diff --git a/components/notes/prose.vue b/components/notes/prose.vue new file mode 100644 index 0000000..591b65e --- /dev/null +++ b/components/notes/prose.vue @@ -0,0 +1,12 @@ + + + diff --git a/components/notes/reblog-header.vue b/components/notes/reblog-header.vue index 60013fe..6d4667a 100644 --- a/components/notes/reblog-header.vue +++ b/components/notes/reblog-header.vue @@ -1,9 +1,11 @@ @@ -12,6 +14,7 @@ import type { Emoji } from "@versia/client/types"; import { Repeat } from "lucide-vue-next"; import * as m from "~/paraglide/messages.js"; import Avatar from "../profiles/avatar.vue"; +import { Card } from "../ui/card"; const { url } = defineProps<{ avatar: string; @@ -21,4 +24,4 @@ const { url } = defineProps<{ }>(); const urlAsPath = new URL(url).pathname; - \ No newline at end of file + diff --git a/components/profiles/avatar.vue b/components/profiles/avatar.vue index 6abd495..453a2d8 100644 --- a/components/profiles/avatar.vue +++ b/components/profiles/avatar.vue @@ -1,5 +1,5 @@