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.

message_feed UI: Update logo dimensions for better scalability.

Jitendra Kumar8682db55739a
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index b1657c27a5d..5f1536ceffd 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -241,9 +241,9 @@ p.n-margin {
.alert-zulip-logo,
.top-messages-logo,
.bottom-messages-logo {
- width: 24px;
- height: 24px;
- margin: 0 auto 12px;
+ width: 1.7143em; /* 24px at 14px/em */
+ height: 1.7143em;
+ margin: 0 auto 0.8571em; /* 12px at 14px/em */
& svg {
& circle {
@@ -267,10 +267,6 @@ p.n-margin {
/* Since padding under message header is not transparent
we need to position it below the padding. */
padding-top: var(--header-padding-bottom);
- margin-bottom: 0;
- /* To fit the logo inside the spinner. */
- position: relative;
- top: -2px;
}
/* See https://web.dev/animations-guide/#triggers before adding any funny animation properties here. */
@@ -1229,13 +1225,20 @@ nav {
#loading_newer_messages_indicator_box_container {
position: absolute;
left: 50%;
+
+ /* Override the base rules in app_components.css, which would require
+ coordination with loading.make_indicator */
+ .loading_indicator_spinner {
+ height: 2.7143em; /* 38px at 14px/em */
+ width: 2.7143em; /* 38px at 14px/em */
+ }
}
#loading_older_messages_indicator_box,
#loading_newer_messages_indicator_box {
position: relative;
- left: -50%;
- top: -43px;
+ left: -1.3571em; /* 50% of 38px = 19px at 14px/em */
+ top: -3.0714em; /* -43px at 14px/em */
z-index: 1;
border-radius: 6px;
}