Reuse fillMaxWidth on MatrixUserRow

This commit is contained in:
Maxime NATUREL
2023-03-17 17:21:43 +01:00
committed by Florian Renaud
parent 080f3dc266
commit 87e96d7ac9

View File

@@ -20,6 +20,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
@@ -50,6 +51,7 @@ fun MatrixUserRow(
Row(
modifier = modifier
.let { if (onClick != null) it.clickable(onClick = onClick) else it }
.fillMaxWidth()
.padding(start = 16.dp, top = 8.dp, end = 16.dp, bottom = 8.dp)
.height(IntrinsicSize.Min),
verticalAlignment = Alignment.CenterVertically