From a216aafb70d1998f0b9bf6c97074c2c19395c830 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 27 Jun 2023 17:10:40 +0200 Subject: [PATCH] Improve comment clarity --- .../messages/impl/timeline/components/MessageEventBubble.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/MessageEventBubble.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/MessageEventBubble.kt index bf1ca9d5ca..b8d5aa2b25 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/MessageEventBubble.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/components/MessageEventBubble.kt @@ -112,7 +112,8 @@ fun MessageEventBubble( .fillMaxWidth(BUBBLE_WIDTH_RATIO) .padding(horizontal = 16.dp) .offsetForItem(), - // Need to repeat this if content width is low. + // Need to set the contentAlignment again (it's already set in TimelineItemEventRow), for the case + // when content width is low. contentAlignment = if (state.isMine) Alignment.CenterEnd else Alignment.CenterStart ) { Surface(