From 3b2e288ee151b46a1dfcc6abf5f8af1581423b65 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 87a30c247..521dd08ce 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 db8495d35409687bf8eb9a1c8c9c4c43eeaa4af8 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 521dd08ce..915e5a015 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; } }