mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 07:57:03 +05:30
app: remove extraneous padding from post lists
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
47648f6e2d
commit
8abb5cbd3a
2 changed files with 2 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue