From 94f20f499b945e3b558ba0d941ed1897f8dd4fdb Mon Sep 17 00:00:00 2001 From: "smx.pusha" <139338836+smxpusha@users.noreply.github.com> Date: Mon, 10 Aug 2026 07:43:13 +0200 Subject: [PATCH] ENH - preview Feather post images --- .../components/feather/FeatherPostCard.vue | 33 ++++- frontend/src/stores/phone.ts | 5 + frontend/src/views/apps/FeatherApp.vue | 126 +++++++++++++++++- sky_phone/config/locales/en.lua | 2 +- 4 files changed, 157 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/feather/FeatherPostCard.vue b/frontend/src/components/feather/FeatherPostCard.vue index 338806a..83d18f9 100644 --- a/frontend/src/components/feather/FeatherPostCard.vue +++ b/frontend/src/components/feather/FeatherPostCard.vue @@ -17,6 +17,7 @@ import type { FeatherPost } from '@/types/feather' const props = defineProps<{ post: FeatherPost }>() defineEmits<{ follow: [post: FeatherPost] + media: [post: FeatherPost, index: number] menu: [post: FeatherPost] open: [post: FeatherPost] profile: [profileId: number] @@ -127,12 +128,20 @@ function relativeTime(timestamp: number): string { class="feather-media" :class="`feather-media--${Math.min(post.media.length, 4)}`" > - + type="button" + class="feather-media__item" + :aria-label=" + phone.t('Apps.feather.openImage', { + number: String(index + 1), + }) + " + @click.stop="$emit('media', post, index)" + > + +