Skip to content

Commit

Permalink
fix: status bar padding on tablet ui
Browse files Browse the repository at this point in the history
  • Loading branch information
axiel7 committed Jul 11, 2024
1 parent 9731f89 commit 8b86269
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/com/axiel7/moelist/ui/main/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.only
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.foundation.layout.systemBars
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
Expand Down Expand Up @@ -281,7 +282,9 @@ fun MainView(
) { padding ->
if (!isCompactScreen) {
Row(
modifier = Modifier.padding(padding)
modifier = Modifier
.statusBarsPadding()
.padding(padding)
) {
MainNavigationRail(
navController = navController,
Expand Down

0 comments on commit 8b86269

Please sign in to comment.