mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 07:29:14 +01:00
centre the info dialog's rows so the smaller labels line up with their values
This commit is contained in:
@@ -18,6 +18,7 @@ import androidx.compose.runtime.getValue
|
|||||||
import androidx.compose.runtime.mutableStateOf
|
import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
|
import androidx.compose.ui.Alignment
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.platform.LocalContext
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
@@ -77,7 +78,10 @@ private fun InfoRow(
|
|||||||
value: String?,
|
value: String?,
|
||||||
) {
|
) {
|
||||||
if (value.isNullOrBlank()) return
|
if (value.isNullOrBlank()) return
|
||||||
Row(Modifier.fillMaxWidth().padding(vertical = 2.dp)) {
|
Row(
|
||||||
|
modifier = Modifier.fillMaxWidth().padding(vertical = 2.dp),
|
||||||
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = label,
|
text = label,
|
||||||
style = MaterialTheme.typography.bodySmall,
|
style = MaterialTheme.typography.bodySmall,
|
||||||
|
|||||||
Reference in New Issue
Block a user