Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
NodePreviewItem: Improve node image fit and padding
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <[email protected]>
  • Loading branch information
theimpulson committed Mar 26, 2024
1 parent 494788f commit 713d7ad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.requiredSize
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -68,8 +69,9 @@ fun NodePreviewItem(
}
}.build(),
contentDescription = "",
contentScale = ContentScale.Crop,
contentScale = ContentScale.Fit,
modifier = Modifier
.padding(top = 10.dp)
.requiredSize(48.dp)
.clip(RoundedCornerShape(5.dp))
.shimmer(loading)
Expand Down

0 comments on commit 713d7ad

Please sign in to comment.