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: Improve icon alignment in channel info title.

Karl Stolley2b0d50f82e67
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 915989b7218..d7ef5027f37 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -536,6 +536,16 @@ h4.user_group_setting_subsection_title {
.large-icon {
display: inline-block;
margin-left: 5px;
+ /* Square off the icon box for better alignment
+ with adjacent text. */
+ line-height: 1;
+ /* Middle alignment looks good for all but the lock icon. */
+ vertical-align: middle;
+
+ &:has(.zulip-icon-lock) {
+ /* Keep the default baseline alignment for the lock icon. */
+ vertical-align: baseline;
+ }
.zulip-icon {
font-size: 0.75em; /* 18px at 24px/em */