Fixes Like icon aligned to the left in the Notifcations screen

This commit is contained in:
Vitor Pamplona
2023-07-17 13:42:08 -04:00
parent 64bf17b1a0
commit d185e65b3f
2 changed files with 7 additions and 2 deletions
@@ -97,10 +97,15 @@ fun HashCheckFailedIcon(iconSize: Dp) {
@Composable
fun LikedIcon(iconSize: Dp) {
LikedIcon(modifier = remember(iconSize) { Modifier.size(iconSize) })
}
@Composable
fun LikedIcon(modifier: Modifier) {
Icon(
painter = painterResource(R.drawable.ic_liked),
null,
modifier = remember(iconSize) { Modifier.size(iconSize) },
modifier = modifier,
tint = Color.Unspecified
)
}
@@ -234,7 +234,7 @@ fun RenderLikeGallery(
)
} else {
when (val shortReaction = reactionType) {
"+" -> LikedIcon(Size18dp)
"+" -> LikedIcon(modifier.size(Size18dp))
"-" -> Text(text = "\uD83D\uDC4E", modifier = modifier)
else -> Text(text = shortReaction, modifier = modifier)
}