Fixes Like icon aligned to the left in the Notifcations screen
This commit is contained in:
@@ -97,10 +97,15 @@ fun HashCheckFailedIcon(iconSize: Dp) {
|
|||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun LikedIcon(iconSize: Dp) {
|
fun LikedIcon(iconSize: Dp) {
|
||||||
|
LikedIcon(modifier = remember(iconSize) { Modifier.size(iconSize) })
|
||||||
|
}
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun LikedIcon(modifier: Modifier) {
|
||||||
Icon(
|
Icon(
|
||||||
painter = painterResource(R.drawable.ic_liked),
|
painter = painterResource(R.drawable.ic_liked),
|
||||||
null,
|
null,
|
||||||
modifier = remember(iconSize) { Modifier.size(iconSize) },
|
modifier = modifier,
|
||||||
tint = Color.Unspecified
|
tint = Color.Unspecified
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ fun RenderLikeGallery(
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
when (val shortReaction = reactionType) {
|
when (val shortReaction = reactionType) {
|
||||||
"+" -> LikedIcon(Size18dp)
|
"+" -> LikedIcon(modifier.size(Size18dp))
|
||||||
"-" -> Text(text = "\uD83D\uDC4E", modifier = modifier)
|
"-" -> Text(text = "\uD83D\uDC4E", modifier = modifier)
|
||||||
else -> Text(text = shortReaction, modifier = modifier)
|
else -> Text(text = shortReaction, modifier = modifier)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user