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: Collapse empty subscription-request banner wrapper.

Sahil Batra10cc187835f3
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 0f95fdf2641..c2f2adb6f22 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -335,7 +335,12 @@ h3.user_group_setting_subsection_title {
& a {
color: inherit;
}
- margin-bottom: 10px;
+
+ /* Only reserve bottom margin when a banner is actually present, so
+ the empty wrapper doesn't take up space. */
+ &:not(:empty) {
+ margin-bottom: 10px;
+ }
}
.member-search,