mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 22:33:13 +02:00
Fixing the position of the text in short messages with expandable content.
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user