desktop: alignment for reactions (#3747)
This commit is contained in:
parent
afc324dc4f
commit
da1d20c17f
@ -103,7 +103,7 @@ fun ChatItemView(
|
|||||||
setReaction(cInfo, cItem, !r.userReacted, r.reaction)
|
setReaction(cInfo, cItem, !r.userReacted, r.reaction)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Row(modifier.padding(2.dp)) {
|
Row(modifier.padding(2.dp), verticalAlignment = Alignment.CenterVertically) {
|
||||||
ReactionIcon(r.reaction.text, fontSize = 12.sp)
|
ReactionIcon(r.reaction.text, fontSize = 12.sp)
|
||||||
if (r.totalReacted > 1) {
|
if (r.totalReacted > 1) {
|
||||||
Spacer(Modifier.width(4.dp))
|
Spacer(Modifier.width(4.dp))
|
||||||
@ -112,7 +112,6 @@ fun ChatItemView(
|
|||||||
fontSize = 11.5.sp,
|
fontSize = 11.5.sp,
|
||||||
fontWeight = if (r.userReacted) FontWeight.Bold else FontWeight.Normal,
|
fontWeight = if (r.userReacted) FontWeight.Bold else FontWeight.Normal,
|
||||||
color = if (r.userReacted) MaterialTheme.colors.primary else MaterialTheme.colors.secondary,
|
color = if (r.userReacted) MaterialTheme.colors.primary else MaterialTheme.colors.secondary,
|
||||||
modifier = if (appPlatform.isAndroid) Modifier else Modifier.padding(top = 4.dp)
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user