Skip to content

Commit 8e473bb

Browse files
committed
Minor UI fixes
1 parent eb0cee7 commit 8e473bb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

app/src/main/java/com/pcapplusplus/toyvpn/StatsScreen.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import androidx.compose.foundation.layout.height
1616
import androidx.compose.foundation.layout.padding
1717
import androidx.compose.foundation.layout.size
1818
import androidx.compose.foundation.layout.statusBars
19+
import androidx.compose.foundation.layout.systemBars
1920
import androidx.compose.foundation.layout.width
2021
import androidx.compose.foundation.layout.wrapContentWidth
2122
import androidx.compose.foundation.rememberScrollState
@@ -95,7 +96,10 @@ fun StatsScreen(
9596
WindowInsets.statusBars
9697
.asPaddingValues()
9798
.calculateTopPadding(),
98-
bottom = 40.dp,
99+
bottom =
100+
WindowInsets.systemBars
101+
.asPaddingValues()
102+
.calculateBottomPadding(),
99103
start = 16.dp,
100104
end = 16.dp,
101105
)
@@ -107,7 +111,7 @@ fun StatsScreen(
107111
modifier =
108112
Modifier
109113
.align(Alignment.CenterHorizontally)
110-
.padding(bottom = 16.dp),
114+
.padding(bottom = 16.dp, top = 16.dp),
111115
)
112116

113117
StatsCard(
@@ -172,6 +176,8 @@ fun StatsScreen(
172176
Text("Disconnect")
173177
}
174178
}
179+
180+
Spacer(modifier = Modifier.height(16.dp))
175181
}
176182
}
177183

0 commit comments

Comments
 (0)