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.

user_circles: Adjust circles top margin on low-res screens.

Karl Stolley8271c2b0838c
diff --git a/web/styles/left_sidebar.css b/web/styles/left_sidebar.css
index 48550080cc6..aac80cbf9c0 100644
--- a/web/styles/left_sidebar.css
+++ b/web/styles/left_sidebar.css
@@ -1095,6 +1095,16 @@ li.topic-list-item {
.user_circle {
width: var(--length-user-status-circle);
height: var(--length-user-status-circle);
+
+ @media screen and (resolution <= 1x) {
+ /* User circles appear to sag a bit on
+ low-resolution screens, so this fix
+ targets them without disrupting
+ line-height values that may become
+ important in multi-line DM groups, etc.
+ in the future. */
+ margin-top: -2.5px;
+ }
}
.zulip-icon.zulip-icon-bot {
diff --git a/web/styles/right_sidebar.css b/web/styles/right_sidebar.css
index e028c6214a8..1eb8ceb2436 100644
--- a/web/styles/right_sidebar.css
+++ b/web/styles/right_sidebar.css
@@ -121,6 +121,14 @@ $user_status_emoji_width: 24px;
height: var(--length-user-status-circle);
grid-area: starting-anchor-element;
place-self: center center;
+
+ @media screen and (resolution <= 1x) {
+ /* User circles appear to sag a bit on
+ low-resolution screens, so this fix
+ targets them without disrupting
+ line-height values. */
+ margin-top: -2.5px;
+ }
}
.empty-list-message {