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.

unread_counts: Scale unread counts with UI.

Karl Stolley18e5b3ab6b6a
diff --git a/web/styles/app_components.css b/web/styles/app_components.css
index 5959fee46cd..a85f9fa9852 100644
--- a/web/styles/app_components.css
+++ b/web/styles/app_components.css
@@ -588,9 +588,11 @@ div.overlay {
.unread_count {
float: right;
padding: 0 4px;
- height: 16px;
- line-height: 16px;
- font-size: 12px;
+ /* 12px at 14px/em */
+ font-size: 0.8571em;
+ /* 16px at 12px/em, owing to font-size above. */
+ height: 1.3333em;
+ line-height: 1.3333em;
font-weight: normal;
border-radius: 4px;
background-color: var(--color-background-unread-counter);
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index 462e37f8baa..c79726ccd51 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -324,6 +324,12 @@
}
.unread-count-focus-outline {
+ /* Because the inbox view font-size will
+ never be smaller than the em-equivalent
+ of 15px, we restate the base font-size
+ here so that unreads match others in
+ the UI at legacy size (14px). */
+ font-size: var(--base-font-size-px);
grid-area: unread_count;
display: flex;
align-items: center;
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index dc4253a1f9b..4861c615b46 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -542,8 +542,9 @@ li.active-sub-filter {
background: var(--color-background-hover-narrow-filter);
.unread_count {
- top: -6px;
- right: -6px;
+ /* 6px at 12px/1em */
+ top: -0.5em;
+ right: -0.5em;
background: var(--color-background-unread-counter-no-alpha);
}
}