From e87b1d2b1174cd85f7835845716dea3ed2d68e65 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 10 Oct 2024 13:05:03 +0100 Subject: [PATCH] set isBlock for mfm render in embeds --- packages/frontend-embed/src/components/EmMfm.ts | 2 +- packages/frontend-embed/src/components/EmNote.vue | 3 ++- packages/frontend-embed/src/components/EmNoteDetailed.vue | 3 ++- packages/frontend-embed/src/components/EmNoteSimple.vue | 2 +- packages/frontend-embed/src/components/EmNoteSub.vue | 2 +- packages/frontend-embed/src/components/EmSubNoteContent.vue | 2 +- packages/frontend-embed/src/style.scss | 2 ++ 7 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/frontend-embed/src/components/EmMfm.ts b/packages/frontend-embed/src/components/EmMfm.ts index 15a28b0829..607437808c 100644 --- a/packages/frontend-embed/src/components/EmMfm.ts +++ b/packages/frontend-embed/src/components/EmMfm.ts @@ -396,7 +396,7 @@ export default function (props: MfmProps, { emit }: { emit: SetupContext

- +

@@ -63,6 +63,7 @@ SPDX-License-Identifier: AGPL-3.0-only :emojiUrls="appearNote.emojis" :enableEmojiMenu="!true" :enableEmojiMenuReaction="true" + :isBlock="true" />
diff --git a/packages/frontend-embed/src/components/EmNoteDetailed.vue b/packages/frontend-embed/src/components/EmNoteDetailed.vue index 74fc86e81f..0068e05bc4 100644 --- a/packages/frontend-embed/src/components/EmNoteDetailed.vue +++ b/packages/frontend-embed/src/components/EmNoteDetailed.vue @@ -59,7 +59,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- +

@@ -72,6 +72,7 @@ SPDX-License-Identifier: AGPL-3.0-only :author="appearNote.user" :nyaize="'respect'" :emojiUrls="appearNote.emojis" + :isBlock="true" /> RN:
diff --git a/packages/frontend-embed/src/components/EmNoteSimple.vue b/packages/frontend-embed/src/components/EmNoteSimple.vue index 704a876e59..d4afc0b4d7 100644 --- a/packages/frontend-embed/src/components/EmNoteSimple.vue +++ b/packages/frontend-embed/src/components/EmNoteSimple.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- +

diff --git a/packages/frontend-embed/src/components/EmNoteSub.vue b/packages/frontend-embed/src/components/EmNoteSub.vue index f60aea3e7e..9fbd1eae35 100644 --- a/packages/frontend-embed/src/components/EmNoteSub.vue +++ b/packages/frontend-embed/src/components/EmNoteSub.vue @@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only

- +

diff --git a/packages/frontend-embed/src/components/EmSubNoteContent.vue b/packages/frontend-embed/src/components/EmSubNoteContent.vue index db2666a45f..f433573df5 100644 --- a/packages/frontend-embed/src/components/EmSubNoteContent.vue +++ b/packages/frontend-embed/src/components/EmSubNoteContent.vue @@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only ({{ i18n.ts.private }}) ({{ i18n.ts.deletedNote }}) - + RN: ...
diff --git a/packages/frontend-embed/src/style.scss b/packages/frontend-embed/src/style.scss index 00a03a0978..5381ca6c67 100644 --- a/packages/frontend-embed/src/style.scss +++ b/packages/frontend-embed/src/style.scss @@ -310,6 +310,8 @@ rt { // MFM ----------------------------- +bdi.block { display: block } + ._mfm_blur_ { filter: blur(6px); transition: filter 0.3s;