Commit 01fd0e58 authored by Simon Knox's avatar Simon Knox

Merge branch 'nfriend-fix-gl-dropdown-double-scrollbars' into 'master'

Fix GlDropdown double scrollbars

See merge request gitlab-org/gitlab!54837
parents cd56b64f 7d71d089
......@@ -34,7 +34,14 @@
overflow-y: auto;
&.dropdown-extended-height {
max-height: 400px;
$extended-max-height: 400px;
max-height: $extended-max-height;
// See comment below for explanation
.gl-new-dropdown-inner {
max-height: $extended-max-height - 2px;
}
}
@include media-breakpoint-down(xs) {
......@@ -46,6 +53,15 @@
overflow-y: initial;
max-height: initial;
}
// `GlDropdown` specifies the `max-height` of `.gl-new-dropdown-inner`
// as `$dropdown-max-height`, but the `max-height` rule above forces
// the parent `.dropdown-menu` to be _slightly_ too small because of
// the 1px borders. The workaround below overrides the @gitlab/ui style
// to avoid a double scroll bar.
.gl-new-dropdown-inner {
max-height: $dropdown-max-height - 2px;
}
}
.dropdown-toggle,
......
---
title: Fix double scrollbars in some dropdowns
merge_request: 54837
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment