Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

reactions: Set more explicit reaction-text setting.

Karl Stolley4493ee346d21
diff --git a/web/styles/reactions.css b/web/styles/reactions.css
index 39da6df3f5e..b7e84d085e1 100644
--- a/web/styles/reactions.css
+++ b/web/styles/reactions.css
@@ -84,9 +84,18 @@
}
.message_reaction_count {
+ /* 90% works out here to 12.6px */
font-size: 90%;
- margin: 2px 3px;
- line-height: 1em;
+ /* No top and bottom margin; just allow
+ flexbox to handle the vertical alignment. */
+ margin: 0 3px;
+ /* Set the 12.6px text on a 13px line;
+ the goal is to have that 13px line
+ center correctly on the vertical with
+ the 17px-square emoji, resulting in
+ 2px of space above and below the
+ reaction count/name. */
+ line-height: 13px;
}
.message_reaction:hover .message_reaction_count {