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: Fix simplebar scrollbar in org settings dropdown.

Aman Agrawal57b6f9179b2d
diff --git a/static/styles/settings.scss b/static/styles/settings.scss
index 69ea3fbf8fc..f5eda7f7d71 100644
--- a/static/styles/settings.scss
+++ b/static/styles/settings.scss
@@ -544,7 +544,7 @@ input[type=checkbox] {
}
}
-.organization-settings-parent div:first-of-type {
+.organization-settings-parent > div:first-of-type {
margin-top: 10px;
}
@@ -1592,7 +1592,7 @@ body:not(.night-mode) #settings_page .custom_user_field .datepicker {
bottom: auto;
}
- .dropdown-list-body {
+ .dropdown-list-wrapper {
position: relative;
height: auto;
max-height: 200px;
@@ -1600,6 +1600,12 @@ body:not(.night-mode) #settings_page .custom_user_field .datepicker {
margin-top: 0;
display: block;
}
+
+ .dropdown-list-body {
+ position: relative;
+ margin-top: 0;
+ display: block;
+ }
}
.subsection-failed-status p {
diff --git a/static/templates/settings/dropdown_list_widget.hbs b/static/templates/settings/dropdown_list_widget.hbs
index 7acdd1fef7b..18e69a401ea 100644
--- a/static/templates/settings/dropdown_list_widget.hbs
+++ b/static/templates/settings/dropdown_list_widget.hbs
@@ -11,7 +11,9 @@
<li class="dropdown-search" role="presentation">
<input class="no-input-change-detection" type="text" role="menuitem" placeholder="{{list_placeholder}}" autofocus/>
</li>
- <span class="dropdown-list-body" data-simplebar></span>
+ <div class="dropdown-list-wrapper" data-simplebar>
+ <span class="dropdown-list-body"></span>
+ </div>
</ul>
</span>
</label>