fix: Adjust width constraints and layout for MessageBubble and ReplyBubble for improved responsiveness
This commit is contained in:
@@ -307,7 +307,8 @@ fun MessageBubble(
|
|||||||
Box(
|
Box(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(end = 12.dp)
|
.padding(end = 12.dp)
|
||||||
.widthIn(max = 280.dp)
|
.widthIn(min = 60.dp, max = 280.dp)
|
||||||
|
.wrapContentWidth(unbounded = false)
|
||||||
.graphicsLayer {
|
.graphicsLayer {
|
||||||
this.alpha = selectionAlpha
|
this.alpha = selectionAlpha
|
||||||
this.scaleX = selectionScale
|
this.scaleX = selectionScale
|
||||||
@@ -336,13 +337,14 @@ fun MessageBubble(
|
|||||||
|
|
||||||
Row(
|
Row(
|
||||||
verticalAlignment = Alignment.Bottom,
|
verticalAlignment = Alignment.Bottom,
|
||||||
horizontalArrangement = Arrangement.spacedBy(10.dp)
|
horizontalArrangement = Arrangement.spacedBy(10.dp),
|
||||||
|
modifier = Modifier.wrapContentWidth()
|
||||||
) {
|
) {
|
||||||
AppleEmojiText(
|
AppleEmojiText(
|
||||||
text = message.text,
|
text = message.text,
|
||||||
color = textColor,
|
color = textColor,
|
||||||
fontSize = 17.sp,
|
fontSize = 17.sp,
|
||||||
modifier = Modifier.weight(1f, fill = true)
|
modifier = Modifier.wrapContentWidth()
|
||||||
)
|
)
|
||||||
|
|
||||||
Row(
|
Row(
|
||||||
|
|||||||
Reference in New Issue
Block a user