From 448d830c518bf3dcb1f3f924eee1abf8e486e66a Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 14 May 2023 15:31:07 -0400 Subject: [PATCH 1/2] fix image not displaying if no text --- packages/client/src/components/MkSubNoteContent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 87a30c2474..521dd08cea 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -188,7 +188,7 @@ const mfms = props.note.text ? extractMfmWithAnimation(mfm.parse(props.note.text)) : null; -const hasMfm = $ref(mfms.length > 0); +const hasMfm = $ref(mfms && mfms.length > 0); let disableMfm = $ref(hasMfm && defaultStore.state.animatedMfm); From 2c22a20da4c5140ddcd829ff30f15065a0dad549 Mon Sep 17 00:00:00 2001 From: Freeplay Date: Sun, 14 May 2023 15:33:50 -0400 Subject: [PATCH 2/2] button alignment --- packages/client/src/components/MkSubNoteContent.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 521dd08cea..915e5a0155 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -340,6 +340,8 @@ function focusFooter(ev) { } > :deep(button) { margin-top: 10px; + margin-left: 0; + margin-right: .4rem; } }