From 302b5ac9530edaeac1abcd1c260c1f0d048e1db5 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Tue, 20 Aug 2024 17:52:09 +0900 Subject: [PATCH] tweak embed media ui --- packages/frontend/src/components/MkNote.vue | 4 +- .../src/embed/components/EmMediaAudio.vue | 531 ------------------ .../src/embed/components/EmMediaBanner.vue | 76 +-- .../src/embed/components/EmMediaImage.vue | 14 +- .../src/embed/components/EmMediaList.vue | 20 +- .../src/embed/components/EmMediaVideo.vue | 65 +++ 6 files changed, 107 insertions(+), 603 deletions(-) delete mode 100644 packages/frontend/src/embed/components/EmMediaAudio.vue create mode 100644 packages/frontend/src/embed/components/EmMediaVideo.vue diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 84d7a7a10d..67c006f83c 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -79,7 +79,8 @@ SPDX-License-Identifier: AGPL-3.0-only
- + +
@@ -187,6 +188,7 @@ import MkNoteSimple from '@/components/MkNoteSimple.vue'; import MkReactionsViewer from '@/components/MkReactionsViewer.vue'; import MkReactionsViewerDetails from '@/components/MkReactionsViewer.details.vue'; import MkMediaList from '@/components/MkMediaList.vue'; +import EmMediaList from '@/embed/components/EmMediaList.vue'; import MkCwButton from '@/components/MkCwButton.vue'; import MkPoll from '@/components/MkPoll.vue'; import MkUsersTooltip from '@/components/MkUsersTooltip.vue'; diff --git a/packages/frontend/src/embed/components/EmMediaAudio.vue b/packages/frontend/src/embed/components/EmMediaAudio.vue deleted file mode 100644 index 4e25554aac..0000000000 --- a/packages/frontend/src/embed/components/EmMediaAudio.vue +++ /dev/null @@ -1,531 +0,0 @@ - - - - - - - diff --git a/packages/frontend/src/embed/components/EmMediaBanner.vue b/packages/frontend/src/embed/components/EmMediaBanner.vue index 0b87ffdcff..435da238a4 100644 --- a/packages/frontend/src/embed/components/EmMediaBanner.vue +++ b/packages/frontend/src/embed/components/EmMediaBanner.vue @@ -4,70 +4,52 @@ SPDX-License-Identifier: AGPL-3.0-only --> - diff --git a/packages/frontend/src/embed/components/EmMediaImage.vue b/packages/frontend/src/embed/components/EmMediaImage.vue index 9e88513998..5d79d4484a 100644 --- a/packages/frontend/src/embed/components/EmMediaImage.vue +++ b/packages/frontend/src/embed/components/EmMediaImage.vue @@ -8,14 +8,13 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -52,6 +51,7 @@ import { i18n } from '@/i18n.js'; const props = withDefaults(defineProps<{ image: Misskey.entities.DriveFile; + href?: string; raw?: boolean; cover?: boolean; }>(), { diff --git a/packages/frontend/src/embed/components/EmMediaList.vue b/packages/frontend/src/embed/components/EmMediaList.vue index 9ea55aee8d..ef20ecd23f 100644 --- a/packages/frontend/src/embed/components/EmMediaList.vue +++ b/packages/frontend/src/embed/components/EmMediaList.vue @@ -6,8 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only