From 13c5da63d7432607bda2af1dd2c3d3d0a5874fa6 Mon Sep 17 00:00:00 2001
From: Mar0xy <marie@kaifa.ch>
Date: Sun, 22 Oct 2023 22:48:49 +0200
Subject: fix: MFM overflowing out of note

Closes transfem-org/Sharkey#104
---
 packages/frontend/src/components/MkNoteSub.vue | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkNoteSub.vue')

diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index 7cf5d1abfe..fcc4dff98b 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
 		<MkAvatar :class="$style.avatar" :user="note.user" link preview/>
 		<div :class="$style.body">
 			<MkNoteHeader :class="$style.header" :note="note" :mini="true"/>
-			<div>
+			<div :class="$style.content">
 				<p v-if="note.cw != null" :class="$style.cw">
 					<Mfm v-if="note.cw != ''" style="margin-right: 8px;" :text="note.cw" :author="note.user" :i="$i"/>
 					<MkCwButton v-model="showContent" :note="note"/>
@@ -436,6 +436,10 @@ if (props.detail) {
 	min-width: 0;
 }
 
+.content {
+	overflow: hidden;
+}
+
 .header {
 	margin-bottom: 2px;
 }
-- 
cgit v1.2.3-freya

