Use provided modifier
This commit is contained in:
parent
e1798deba2
commit
5026f459d0
3 changed files with 6 additions and 7 deletions
|
|
@ -275,7 +275,7 @@ fun MessageEventRow(
|
|||
Pair(Alignment.CenterStart, Start)
|
||||
}
|
||||
Box(
|
||||
modifier = Modifier
|
||||
modifier = modifier
|
||||
.fillMaxWidth()
|
||||
.wrapContentHeight(),
|
||||
contentAlignment = parentAlignment
|
||||
|
|
@ -331,7 +331,6 @@ fun MessageEventRow(
|
|||
.zIndex(1f)
|
||||
.offset(x = if (messageEvent.isMine) 0.dp else 20.dp, y = -(16.dp))
|
||||
)
|
||||
|
||||
}
|
||||
if (messageEvent.isMine) {
|
||||
Spacer(modifier = Modifier.width(16.dp))
|
||||
|
|
@ -339,9 +338,9 @@ fun MessageEventRow(
|
|||
}
|
||||
}
|
||||
if (messageEvent.groupPosition.isNew()) {
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
Spacer(modifier = modifier.height(8.dp))
|
||||
} else {
|
||||
Spacer(modifier = Modifier.height(2.dp))
|
||||
Spacer(modifier = modifier.height(2.dp))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ fun MessagesTimelineItemImageView(
|
|||
0.7f
|
||||
}
|
||||
Box(
|
||||
modifier = Modifier
|
||||
modifier = modifier
|
||||
.fillMaxWidth(widthPercent)
|
||||
.aspectRatio(content.aspectRatio),
|
||||
contentAlignment = Alignment.Center,
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ internal fun RoomSummaryRow(
|
|||
) {
|
||||
|
||||
val clickModifier = if (room.isPlaceholder) {
|
||||
Modifier
|
||||
modifier
|
||||
} else {
|
||||
Modifier.clickable(
|
||||
modifier.clickable(
|
||||
onClick = { onClick(room) },
|
||||
indication = rememberRipple(),
|
||||
interactionSource = remember { MutableInteractionSource() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue