Reuse fillMaxWidth on MatrixUserRow
This commit is contained in:
parent
080f3dc266
commit
87e96d7ac9
1 changed files with 2 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ import androidx.compose.foundation.clickable
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.IntrinsicSize
|
import androidx.compose.foundation.layout.IntrinsicSize
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.material3.MaterialTheme
|
import androidx.compose.material3.MaterialTheme
|
||||||
|
|
@ -50,6 +51,7 @@ fun MatrixUserRow(
|
||||||
Row(
|
Row(
|
||||||
modifier = modifier
|
modifier = modifier
|
||||||
.let { if (onClick != null) it.clickable(onClick = onClick) else it }
|
.let { if (onClick != null) it.clickable(onClick = onClick) else it }
|
||||||
|
.fillMaxWidth()
|
||||||
.padding(start = 16.dp, top = 8.dp, end = 16.dp, bottom = 8.dp)
|
.padding(start = 16.dp, top = 8.dp, end = 16.dp, bottom = 8.dp)
|
||||||
.height(IntrinsicSize.Min),
|
.height(IntrinsicSize.Min),
|
||||||
verticalAlignment = Alignment.CenterVertically
|
verticalAlignment = Alignment.CenterVertically
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue