Skip to content

Commit

Permalink
fix(servers): fill remaining space when there are no servers
Browse files Browse the repository at this point in the history
  • Loading branch information
jarnedemeulemeester committed Nov 16, 2024
1 parent 4c849f8 commit f44656b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ private fun ServersScreenLayout(
modifier = Modifier
.padding(horizontal = 24.dp)
.widthIn(max = 480.dp)
.align(Alignment.Center),
.fillMaxWidth()
.align(Alignment.Center)
) {
Spacer(modifier = Modifier.weight(0.2f))
Icon(
Expand All @@ -121,6 +122,7 @@ private fun ServersScreenLayout(
text = stringResource(SetupR.string.servers_no_servers),
style = MaterialTheme.typography.bodyMedium,
)
Spacer(modifier = Modifier.weight(1f))
} else {
LazyColumn(
verticalArrangement = Arrangement.spacedBy(12.dp),
Expand Down

0 comments on commit f44656b

Please sign in to comment.