Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Use variables to set height and margin in user profile modal.
Pratik Chanda95117fb82c12
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex fe193290bc9..c06fb63fa09 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -168,7 +168,7 @@This is the header, aka the navbar.*/--header-height: 2.5em; /* 40px at 16px em */-+ --header-line-height: 40px;/*At 600px, the header starts taking up more than 5%of the screen. We make it shorter to leave more space@@ -626,6 +626,9 @@/* Dropdown menu width. This is a legacy value that comes from bootstrap.See 1c6bed55e4e800b5bad7150f6bdd274cd7f6504e for more context. */--width-dropdown-widget-button: 206px;+ /* User profile modal */+ --user-profile-modal-body-height: 60vh;+ --user-profile-modal-body-margin-bottom: 20px;/*Maximum height of the compose box when it is not in maximised state. Thisdiff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex 2ac7f8af060..9d964457de0 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -404,7 +404,7 @@ ul.popover-group-menu-member-list {#user-profile-modal {.modal__body {box-sizing: border-box;- height: 60vh;+ height: var(--user-profile-modal-body-height);padding-left: 16px;padding-right: 16px;@@ -535,7 +535,7 @@ ul.popover-group-menu-member-list {display: block;}- margin-bottom: 20px;+ margin-bottom: var(--user-profile-modal-body-margin-bottom);}.group-tab-element-header,diff --git a/web/third/bootstrap/css/bootstrap.app.css b/web/third/bootstrap/css/bootstrap.app.cssindex 666add666b0..6c3e71c6b22 100644--- a/web/third/bootstrap/css/bootstrap.app.css+++ b/web/third/bootstrap/css/bootstrap.app.css@@ -48,7 +48,7 @@ h4 {h1,h2,h3 {- line-height: 40px;+ line-height: var(--header-line-height);}h1 {font-size: 38.5px;