mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 02:57:04 +05:30
parent
ec4066c472
commit
cec2d70fda
2 changed files with 5 additions and 3 deletions
|
@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
* Upgrade to Compose April releases
|
* Upgrade to Compose April releases
|
||||||
|
* Story items are now more compact so you can see more items
|
||||||
|
on your screen.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ fun LobstersCard(
|
||||||
refresh()
|
refresh()
|
||||||
}
|
}
|
||||||
.background(MaterialTheme.colorScheme.background)
|
.background(MaterialTheme.colorScheme.background)
|
||||||
.padding(start = 16.dp, top = 16.dp, end = 4.dp, bottom = 16.dp)
|
.padding(start = 8.dp)
|
||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
horizontalArrangement = Arrangement.spacedBy(8.dp),
|
||||||
|
@ -171,7 +171,7 @@ internal fun Submitter(
|
||||||
@Composable
|
@Composable
|
||||||
private fun SaveButton(isSaved: Boolean, modifier: Modifier = Modifier) {
|
private fun SaveButton(isSaved: Boolean, modifier: Modifier = Modifier) {
|
||||||
Crossfade(targetState = isSaved, label = "save-button") { saved ->
|
Crossfade(targetState = isSaved, label = "save-button") { saved ->
|
||||||
Box(modifier = modifier.padding(12.dp)) {
|
Box(modifier = modifier.padding(vertical = 12.dp)) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = if (saved) Icons.Filled.Favorite else Icons.Filled.FavoriteBorder,
|
imageVector = if (saved) Icons.Filled.Favorite else Icons.Filled.FavoriteBorder,
|
||||||
tint = MaterialTheme.colorScheme.secondary,
|
tint = MaterialTheme.colorScheme.secondary,
|
||||||
|
@ -185,7 +185,7 @@ private fun SaveButton(isSaved: Boolean, modifier: Modifier = Modifier) {
|
||||||
@Composable
|
@Composable
|
||||||
private fun CommentsButton(commentCount: Int?, modifier: Modifier = Modifier) {
|
private fun CommentsButton(commentCount: Int?, modifier: Modifier = Modifier) {
|
||||||
BadgedBox(
|
BadgedBox(
|
||||||
modifier = modifier.padding(12.dp),
|
modifier = modifier.padding(vertical = 12.dp),
|
||||||
badge = {
|
badge = {
|
||||||
if (commentCount != null) {
|
if (commentCount != null) {
|
||||||
Badge(
|
Badge(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue