fix: Adjust width constraints and layout for MessageBubble and ReplyBubble for improved responsiveness

This commit is contained in:
k1ngsterr1
2026-01-22 13:00:49 +05:00
parent 7d7b402773
commit 727ae9b5b5

View File

@@ -307,7 +307,8 @@ fun MessageBubble(
Box(
modifier = Modifier
.padding(end = 12.dp)
.widthIn(max = 280.dp)
.widthIn(min = 60.dp, max = 280.dp)
.wrapContentWidth(unbounded = false)
.graphicsLayer {
this.alpha = selectionAlpha
this.scaleX = selectionScale
@@ -336,13 +337,14 @@ fun MessageBubble(
Row(
verticalAlignment = Alignment.Bottom,
horizontalArrangement = Arrangement.spacedBy(10.dp)
horizontalArrangement = Arrangement.spacedBy(10.dp),
modifier = Modifier.wrapContentWidth()
) {
AppleEmojiText(
text = message.text,
color = textColor,
fontSize = 17.sp,
modifier = Modifier.weight(1f, fill = true)
modifier = Modifier.wrapContentWidth()
)
Row(