From 8537f9e0ae63d44f7307015f8d49a1bb369072b9 Mon Sep 17 00:00:00 2001 From: patak Date: Tue, 6 Dec 2022 12:07:17 +0100 Subject: [PATCH] feat: display status meta over card (#325) --- components/account/AccountInlineInfo.vue | 5 ++- components/common/CommonMetaWrapper.vue | 5 +++ components/nav/SelectFeatureFlags.vue | 6 +++ components/notification/NotificationCard.vue | 43 +++++++++---------- .../NotificationGroupedFollow.vue | 42 +++++++++--------- .../notification/NotificationPaginator.vue | 7 +-- components/status/StatusCard.vue | 30 +++++++------ components/status/StatusCardSkeleton.vue | 2 +- components/status/StatusDetails.vue | 1 - components/status/StatusReplyingTo.vue | 26 ++++++----- components/timeline/TimelineList.vue | 2 +- components/timeline/TimelinePaginator.vue | 10 ++--- composables/featureFlags.ts | 2 + locales/en-US.json | 1 + package.json | 1 + pages/[[server]]/@[account]/[status].vue | 6 +-- pnpm-lock.yaml | 8 ++++ 17 files changed, 115 insertions(+), 82 deletions(-) create mode 100644 components/common/CommonMetaWrapper.vue diff --git a/components/account/AccountInlineInfo.vue b/components/account/AccountInlineInfo.vue index 8721fa3d..f277b699 100644 --- a/components/account/AccountInlineInfo.vue +++ b/components/account/AccountInlineInfo.vue @@ -1,9 +1,10 @@ @@ -14,7 +15,7 @@ const { link = true } = defineProps<{ :class="link ? 'text-link-rounded ml-0 pl-0' : ''" min-w-0 flex gap-1 items-center > - + diff --git a/components/common/CommonMetaWrapper.vue b/components/common/CommonMetaWrapper.vue new file mode 100644 index 00000000..c5bbcafc --- /dev/null +++ b/components/common/CommonMetaWrapper.vue @@ -0,0 +1,5 @@ + diff --git a/components/nav/SelectFeatureFlags.vue b/components/nav/SelectFeatureFlags.vue index 53d8de5e..89f232e7 100644 --- a/components/nav/SelectFeatureFlags.vue +++ b/components/nav/SelectFeatureFlags.vue @@ -12,6 +12,12 @@ const featureFlags = useFeatureFlags() > {{ $t('feature_flag.virtual_scroll') }} + + {{ $t('feature_flag.avatar_on_avatar') }} + diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index eef501aa..16b5766b 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -7,50 +7,47 @@ const { notification } = defineProps<{