Improve comment clarity

This commit is contained in:
Benoit Marty
2023-06-27 17:10:40 +02:00
committed by Benoit Marty
parent 641028c082
commit a216aafb70

View File

@@ -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(