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 overlay: Use shared variable for subheader height.

evykassirercc88bcdf2a2c
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 4ae78ebc29a..0df0e6bcf08 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -529,8 +529,9 @@
--overlay-container-max-height: 1000px;
/* .subscriptions-header and .settings-header */
--settings-overlay-header-height: 45px;
- /* .display-type */
- --subscriptions-overlay-display-type-height: 44px;
+ /* .display-type and .list-toggler-container
+ in subscriptions and user group settings overlays */
+ --settings-overlay-subheader-height: 44px;
/* .settings-sticky-footer */
--subscriptions-overlay-sticky-footer-height: 60px;
/* Informational overlay */
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index 391e7443d67..97ef74b1411 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -433,10 +433,11 @@ h4.user_group_setting_subsection_title {
.list-toggler-container {
align-items: center;
- padding: 6px 8px;
+ padding: 0 8px;
border-bottom: 1px solid var(--color-border-modal-bar);
display: flex;
justify-content: space-between;
+ height: var(--settings-overlay-subheader-height);
#add_new_subscription {
position: relative;
@@ -456,8 +457,10 @@ h4.user_group_setting_subsection_title {
}
.display-type {
- padding: 2px;
- text-align: center;
+ height: var(--settings-overlay-subheader-height);
+ display: flex;
+ justify-content: center;
+ align-items: center;
font-weight: 600;
border-bottom: 1px solid var(--color-border-modal-bar);
@@ -483,7 +486,6 @@ h4.user_group_setting_subsection_title {
display: none;
font-size: 1.5em;
line-height: 1;
- margin: 9px;
font-weight: 600;
word-break: break-all;
@@ -792,13 +794,13 @@ h4.user_group_setting_subsection_title {
height: calc(
var(--overlay-container-height) -
var(--settings-overlay-header-height) -
- var(--subscriptions-overlay-display-type-height) -
+ var(--settings-overlay-subheader-height) -
var(--subscriptions-overlay-sticky-footer-height)
);
max-height: calc(
var(--overlay-container-max-height) -
var(--settings-overlay-header-height) -
- var(--subscriptions-overlay-display-type-height) -
+ var(--settings-overlay-subheader-height) -
var(--subscriptions-overlay-sticky-footer-height)
);
}