Remote edit dialog UI improved
This commit is contained in:
parent
7f42548b53
commit
b9fff2dc43
@ -81,7 +81,7 @@ fun EditRemotesDialog(
|
||||
) {
|
||||
Text(
|
||||
text = "Remotes",
|
||||
color = MaterialTheme.colors.primaryTextColor,
|
||||
style = MaterialTheme.typography.h3,
|
||||
modifier = Modifier.padding(vertical = 8.dp),
|
||||
)
|
||||
|
||||
@ -109,6 +109,7 @@ fun EditRemotesDialog(
|
||||
.fillMaxHeight()
|
||||
.background(MaterialTheme.colors.background),
|
||||
) {
|
||||
if (remotesEditorData.listRemotes.isNotEmpty()) {
|
||||
LazyColumn(
|
||||
modifier = Modifier.weight(1f)
|
||||
) {
|
||||
@ -131,6 +132,19 @@ fun EditRemotesDialog(
|
||||
)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Box (
|
||||
modifier = Modifier
|
||||
.weight(1f)
|
||||
.fillMaxWidth(),
|
||||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
Text(
|
||||
text = "No available remotes",
|
||||
style = MaterialTheme.typography.body2.copy(color = MaterialTheme.colors.secondaryTextColor)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Row(
|
||||
modifier = Modifier
|
||||
|
Loading…
Reference in New Issue
Block a user