mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui: fix nav-dropdown (#326)
This commit is contained in:
1 parent
f9918128a9
commit
adce12e212
3 files changed
+5
-4
No files matched your search
@@ -26,7 +26,7 @@ export default class Dropdown extends DOMAttachedObject {
|
||||
};
|
||||
this.dropInstance = new Drop({
|
||||
target: $dom[0],
|
||||
classes: 'dropdown',
|
||||
classes: `dropdown ${$dom.attr('data-dropdown-custom-class') || ''}`,
|
||||
content: this.options.target || $.find($dom.attr('data-dropdown-target'))[0],
|
||||
position: this.options.position,
|
||||
openOn: 'hover',
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
.drop .dropdown-target
|
||||
display: block
|
||||
|
||||
.dropdown
|
||||
.drop.nav__dropdown
|
||||
max-height: calc(100% - 60px)
|
||||
overflow-y: auto
|
||||
box-shadow: 0rem 0.125rem 0.4375rem rgba(0 0 0 , 30%);
|
||||
|
||||
.dropdown
|
||||
.menu
|
||||
|
||||
Reference in new issue
Block a user