Skip to content

Commit 28f0768

Browse files
feat: show reaction count in the UI
1 parent f05123e commit 28f0768

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/discord/src/message/reaction.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,19 @@ impl RenderOnce for DiscordMessageReaction {
154154
let emoji = self.get_emoji();
155155
let theme = cx.theme();
156156
div()
157-
.p_1()
157+
.px_1()
158+
.py_px()
158159
.border_1()
159160
.border_color(theme.border)
160161
.when(self.get_self_reaction().is_some(), |s| s.border_color(theme.accent))
161162
.bg(theme.panel)
162163
.rounded_md()
164+
.flex()
165+
.justify_center()
166+
.items_center()
167+
.gap_1()
163168
.child(Self::render_emoji(&emoji))
169+
.child(self.get_count(None).to_string())
164170
}
165171
}
166172

0 commit comments

Comments
 (0)