fix: remove visual divider

This commit is contained in:
Harsh Shandilya 2024-04-24 23:44:13 +05:30
parent 12e57298af
commit 687cb32f7c
4 changed files with 5 additions and 5 deletions

View File

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Remove dividers between posts
### Fixed
- Disable logging of network errors to Sentry

View File

@ -17,7 +17,6 @@ import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Inbox
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
@ -55,7 +54,6 @@ fun DatabasePosts(
stickyHeader(contentType = "month-header") { MonthHeader(label = month) }
items(items = posts, key = { it.shortId }, contentType = { "LobstersItem" }) { item ->
LobstersListItem(item = item, refresh = {}, postActions = postActions)
HorizontalDivider()
}
}
}

View File

@ -16,7 +16,6 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.HorizontalDivider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@ -73,7 +72,6 @@ fun NetworkPosts(
postActions = postActions,
refresh = { lazyPagingItems.refresh() },
)
HorizontalDivider()
}
}
if (lazyPagingItems.loadState.append == LoadState.Loading) {

View File

@ -76,7 +76,7 @@ fun LobstersCard(
refresh()
}
.background(MaterialTheme.colorScheme.background)
.padding(start = 8.dp)
.padding(start = 8.dp, bottom = 2.dp)
) {
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp),