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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ hms(elapsedTimeMs) }}
-
-
-
-
-
-
-
-
-
-
-
-
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
-
+
- {{ i18n.ts.sensitive }}{{ defaultStore.state.dataSaver.media ? ` (${i18n.ts.image}${image.size ? ' ' + bytes(image.size) : ''})` : '' }}
- {{ defaultStore.state.dataSaver.media && image.size ? bytes(image.size) : i18n.ts.image }}
+ {{ i18n.ts.sensitive }}
+ {{ i18n.ts.image }}
{{ i18n.ts.clickToShow }}
@@ -39,7 +38,7 @@ SPDX-License-Identifier: AGPL-3.0-only
ALT
-
+
@@ -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
@@ -43,8 +41,6 @@ const props = defineProps<{
originalEntityUrl?: string;
}>();
-const pswpZIndex = os.claimZIndex('middle');
-document.documentElement.style.setProperty('--mk-pswp-root-z-index', pswpZIndex.toString());
const count = computed(() => props.mediaList.filter(media => previewable(media)).length);
let activeEl: HTMLElement | null = null;
@@ -150,14 +146,4 @@ const previewable = (file: Misskey.entities.DriveFile): boolean => {
.banner {
position: relative;
}
-
-.mediaLinkForEmbed::after {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- z-index: 1;
- content: '';
-}
diff --git a/packages/frontend/src/embed/components/EmMediaVideo.vue b/packages/frontend/src/embed/components/EmMediaVideo.vue
new file mode 100644
index 0000000000..ad0cd08391
--- /dev/null
+++ b/packages/frontend/src/embed/components/EmMediaVideo.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+