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.

settings: Fix distortion of wide organization logos.

VinayChauhan-06d55e3001a167
diff --git a/web/styles/zulip.css b/web/styles/zulip.css
index aa057fcf2fd..4527414b3fc 100644
--- a/web/styles/zulip.css
+++ b/web/styles/zulip.css
@@ -1179,11 +1179,12 @@ nav {
.nav-logo {
display: inline-block;
- height: 1.25em; /* 20px at 16px em */
+ height: auto;
+ max-height: 1.5625em; /* 25px at 16px/1em */
max-width: var(--realm-logo-max-width);
@media (height < $short_navbar_cutoff_height) {
- height: 0.9375em; /* 15px at 16px em */
+ max-height: 1.1719em; /* 18.75px at 16px/1em */
}
}
diff --git a/web/templates/settings/organization_profile_admin.hbs b/web/templates/settings/organization_profile_admin.hbs
index 66299db82a7..72367073ae2 100644
--- a/web/templates/settings/organization_profile_admin.hbs
+++ b/web/templates/settings/organization_profile_admin.hbs
@@ -60,7 +60,7 @@
</div>
{{> upgrade_tip_widget . }}
- <p>{{t "A wide image (200×25 pixels) for the upper left corner of the app." }}</p>
+ <p>{{t "A wide logo for the upper left corner of the app (at least 200×25 pixels recommended)." }}</p>
<div class="realm-logo-group">
<div class="realm-logo-block realm-logo-section">
<h5 class="realm-logo-title">{{t "Light theme logo" }}</h5>