Fixing the position of the text in short messages with expandable content.

This commit is contained in:
Vitor Pamplona
2023-03-28 11:34:20 -04:00
parent 9590eecacd
commit 73cabc1b25

View File

@@ -54,24 +54,23 @@ fun ExpandableRichTextViewer(
content.take(whereToCut) content.take(whereToCut)
} }
Box(contentAlignment = Alignment.BottomCenter) { Box {
// CompositionLocalProvider(LocalLayoutDirection provides LayoutDirection.Rtl) {
RichTextViewer( RichTextViewer(
text, text,
canPreview, canPreview,
modifier, modifier.align(Alignment.TopStart),
tags, tags,
backgroundColor, backgroundColor,
accountViewModel, accountViewModel,
navController navController
) )
// }
if (content.length > whereToCut && !showFullText) { if (content.length > whereToCut && !showFullText) {
Row( Row(
verticalAlignment = Alignment.CenterVertically, verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.Center, horizontalArrangement = Arrangement.Center,
modifier = Modifier modifier = Modifier
.align(Alignment.BottomCenter)
.fillMaxWidth() .fillMaxWidth()
.background( .background(
brush = Brush.verticalGradient( brush = Brush.verticalGradient(