Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings/subscriptions: Use shared variable for header height.
evykassireref02dc093e66
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 17e9f2d8de7..4ae78ebc29a 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -527,8 +527,8 @@/* Overlay heights for streams modal */--overlay-container-height: 95vh;--overlay-container-max-height: 1000px;- /* .subscriptions-header */- --subscriptions-overlay-header-height: 45px;+ /* .subscriptions-header and .settings-header */+ --settings-overlay-header-height: 45px;/* .display-type */--subscriptions-overlay-display-type-height: 44px;/* .settings-sticky-footer */diff --git a/web/styles/settings.css b/web/styles/settings.cssindex 1430b5e31d7..02932ddae7b 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -1,6 +1,4 @@:root {- /* The height of the settings header (including tab switcher). */- --settings-header-height: 45px;/* The width of the settings sidebar. */--settings-sidebar-width: 255px;}@@ -1321,7 +1319,7 @@ label.preferences-radio-choice-label {.tab-container {box-sizing: border-box;- height: var(--settings-header-height);+ height: var(--settings-overlay-header-height);padding: 6px;background-color: var(--color-background-modal-bar);border-bottom: 1px solid var(--color-border-modal-bar);@@ -1354,7 +1352,7 @@ label.preferences-radio-choice-label {}.sidebar {- height: calc(100% - var(--settings-header-height));+ height: calc(100% - var(--settings-overlay-header-height));overflow-y: auto;border-right: 1px solid var(--color-border-modal);@@ -1495,7 +1493,7 @@ label.preferences-radio-choice-label {.settings-header {width: 100%;- height: var(--settings-header-height);+ height: var(--settings-overlay-header-height);box-sizing: border-box;border-bottom: 1px solid var(--color-border-modal-bar);background-color: var(--color-background-modal-bar);@@ -1510,7 +1508,7 @@ label.preferences-radio-choice-label {#settings_content {position: relative;width: 100%;- height: calc(100% - var(--settings-header-height));+ height: calc(100% - var(--settings-overlay-header-height));float: left;overflow: auto;diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex 937b2788abd..6fc1b0cac82 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -386,7 +386,7 @@ h4.user_group_setting_subsection_title {display: inline-block;vertical-align: top;width: 50%;- height: calc(100% - 45px);+ height: calc(100% - var(--settings-overlay-header-height));margin: 0 -2px;}@@ -801,13 +801,13 @@ h4.user_group_setting_subsection_title {.user-group-creation-simplebar-container {height: calc(var(--overlay-container-height) -- var(--subscriptions-overlay-header-height) -+ var(--settings-overlay-header-height) -var(--subscriptions-overlay-display-type-height) -var(--subscriptions-overlay-sticky-footer-height));max-height: calc(var(--overlay-container-max-height) -- var(--subscriptions-overlay-header-height) -+ var(--settings-overlay-header-height) -var(--subscriptions-overlay-display-type-height) -var(--subscriptions-overlay-sticky-footer-height));@@ -1034,7 +1034,7 @@ h4.user_group_setting_subsection_title {.settings {position: relative;- height: calc(100% - 45px);+ height: calc(100% - var(--settings-overlay-header-height));overflow-y: auto;-webkit-overflow-scrolling: touch;@@ -1308,7 +1308,7 @@ div.settings-radio-input-parent {display: block;margin: 0;width: 100%;- height: calc(100% - 45px);+ height: calc(100% - var(--settings-overlay-header-height));border: none;}@@ -1319,7 +1319,7 @@ div.settings-radio-input-parent {position: absolute;left: 101%;- top: 45px;+ top: var(--settings-overlay-header-height);background-color: var(--color-background-modal);border-top: none;