fix(common): make LobstersCard more compact

Fixes #526
This commit is contained in:
Harsh Shandilya 2024-04-20 15:14:37 +05:30
parent ec4066c472
commit cec2d70fda
2 changed files with 5 additions and 3 deletions

View file

@ -76,7 +76,7 @@ fun LobstersCard(
refresh()
}
.background(MaterialTheme.colorScheme.background)
.padding(start = 16.dp, top = 16.dp, end = 4.dp, bottom = 16.dp)
.padding(start = 8.dp)
) {
Row(
horizontalArrangement = Arrangement.spacedBy(8.dp),
@ -171,7 +171,7 @@ internal fun Submitter(
@Composable
private fun SaveButton(isSaved: Boolean, modifier: Modifier = Modifier) {
Crossfade(targetState = isSaved, label = "save-button") { saved ->
Box(modifier = modifier.padding(12.dp)) {
Box(modifier = modifier.padding(vertical = 12.dp)) {
Icon(
imageVector = if (saved) Icons.Filled.Favorite else Icons.Filled.FavoriteBorder,
tint = MaterialTheme.colorScheme.secondary,
@ -185,7 +185,7 @@ private fun SaveButton(isSaved: Boolean, modifier: Modifier = Modifier) {
@Composable
private fun CommentsButton(commentCount: Int?, modifier: Modifier = Modifier) {
BadgedBox(
modifier = modifier.padding(12.dp),
modifier = modifier.padding(vertical = 12.dp),
badge = {
if (commentCount != null) {
Badge(