Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Standardize height of dropdown menu.
evykassirer690518097697
diff --git a/web/styles/settings.css b/web/styles/settings.cssindex df59e761f46..f4350f74dfd 100644--- a/web/styles/settings.css+++ b/web/styles/settings.css@@ -281,10 +281,20 @@ h3,color: var(--color-realm-enable-spectator-access-link);}+ /* The height and width of this should match input fields in settings+ menu. We try to keep the padding and height the same, and both without+ border-box box-sizing.++ These styles should be kept in sync with the styles for .settings_select+ in subscriptions.css */.settings_select {- height: 30px;- width: var(--modal-input-width);+ box-sizing: unset;+ /* Subtract 1px border on each side and 25+6 padding */+ width: calc(var(--modal-input-width) - 33px);max-width: 100%;+ padding-top: 4px;+ padding-bottom: 4px;+ height: 1.4em; /* To match height of input elements */}.account-settings-heading {diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.cssindex 90216c814a8..7b85343b690 100644--- a/web/styles/subscriptions.css+++ b/web/styles/subscriptions.css@@ -1265,10 +1265,14 @@ div.settings-radio-input-parent {}.settings_select {- /* Match with select elements in settings page */- min-width: var(--modal-input-width);+ /* Match with select elements in settings page. See there+ for comments about these values. */+ box-sizing: unset;+ width: calc(var(--modal-input-width) - 33px);max-width: 100%;- height: 30px;+ padding-top: 4px;+ padding-bottom: 4px;+ height: 1.4em;}.dropdown-widget-button {