app: remove extraneous padding from post lists

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-12-18 13:06:25 +05:30
parent 47648f6e2d
commit 8abb5cbd3a
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 2 additions and 4 deletions

View file

@ -1,6 +1,5 @@
package dev.msfjarvis.lobsters.ui.posts
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.Composable
@ -26,7 +25,7 @@ fun HottestPosts(
} else {
LazyColumn(
state = listState,
modifier = Modifier.padding(horizontal = 8.dp).then(modifier),
modifier = Modifier.then(modifier),
) {
items(posts) { item ->
if (item != null) {

View file

@ -1,6 +1,5 @@
package dev.msfjarvis.lobsters.ui.posts
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.runtime.Composable
@ -23,7 +22,7 @@ fun SavedPosts(
} else {
LazyColumn(
state = listState,
modifier = Modifier.padding(horizontal = 8.dp).then(modifier)
modifier = Modifier.then(modifier)
) {
items(posts) { item ->
LobstersItem(