From 29f989984bab400f6ef4ff44b248607d611f5c01 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sun, 18 Dec 2022 22:38:23 +0100 Subject: [PATCH] feat: initial expanded quoted toot --- components/status/StatusPreviewCard.vue | 6 ++- components/status/StatusPreviewCardInfo.vue | 3 +- components/status/StatusPreviewMastodon.vue | 46 +++++++++++++++++++++ 3 files changed, 53 insertions(+), 2 deletions(-) create mode 100644 components/status/StatusPreviewMastodon.vue diff --git a/components/status/StatusPreviewCard.vue b/components/status/StatusPreviewCard.vue index 815ad5e8..7383908e 100644 --- a/components/status/StatusPreviewCard.vue +++ b/components/status/StatusPreviewCard.vue @@ -22,11 +22,15 @@ const isSquare = $computed(() => ( const providerName = $computed(() => props.card.providerName ? props.card.providerName : new URL(props.card.url).hostname) const gitHubCards = $(computedEager(() => useFeatureFlags().experimentalGitHubCards)) + +const isMastodonLink = true + // TODO: handle card.type: 'photo' | 'video' | 'rich'; diff --git a/components/status/StatusPreviewCardInfo.vue b/components/status/StatusPreviewCardInfo.vue index 4a683959..e33f508c 100644 --- a/components/status/StatusPreviewCardInfo.vue +++ b/components/status/StatusPreviewCardInfo.vue @@ -7,6 +7,7 @@ const props = defineProps<{ root?: boolean /** For the preview image, only the small image mode is displayed */ provider?: string + isSquare?: boolean }>() @@ -28,7 +29,7 @@ const props = defineProps<{ >{{ card.title }}

{{ card.description }}

diff --git a/components/status/StatusPreviewMastodon.vue b/components/status/StatusPreviewMastodon.vue new file mode 100644 index 00000000..2458d559 --- /dev/null +++ b/components/status/StatusPreviewMastodon.vue @@ -0,0 +1,46 @@ + + +