@@ -6,13 +6,11 @@ import androidx.compose.foundation.clickable
6
6
import androidx.compose.foundation.layout.Column
7
7
import androidx.compose.foundation.layout.Spacer
8
8
import androidx.compose.foundation.layout.WindowInsets
9
- import androidx.compose.foundation.layout.WindowInsetsSides
10
9
import androidx.compose.foundation.layout.asPaddingValues
11
10
import androidx.compose.foundation.layout.aspectRatio
12
11
import androidx.compose.foundation.layout.fillMaxSize
13
12
import androidx.compose.foundation.layout.fillMaxWidth
14
13
import androidx.compose.foundation.layout.height
15
- import androidx.compose.foundation.layout.only
16
14
import androidx.compose.foundation.layout.padding
17
15
import androidx.compose.foundation.layout.safeDrawing
18
16
import androidx.compose.foundation.lazy.grid.GridCells
@@ -56,16 +54,8 @@ private fun ObjectGrid(
56
54
) {
57
55
LazyVerticalGrid (
58
56
columns = GridCells .Adaptive (180 .dp),
59
- // TODO simplify padding after https://issuetracker.google.com/issues/365052672 is fixed
60
- modifier = modifier
61
- .fillMaxSize()
62
- .padding(
63
- WindowInsets .safeDrawing
64
- .only(WindowInsetsSides .Horizontal )
65
- .asPaddingValues()
66
- ),
67
- contentPadding = WindowInsets .safeDrawing.only(WindowInsetsSides .Vertical )
68
- .asPaddingValues(),
57
+ modifier = modifier.fillMaxSize(),
58
+ contentPadding = WindowInsets .safeDrawing.asPaddingValues(),
69
59
) {
70
60
items(objects, key = { it.objectID }) { obj ->
71
61
ObjectFrame (
0 commit comments