slight z-index refactor and attempt at organizing it
This commit is contained in:
parent
93293db038
commit
872db65fd8
13 changed files with 42 additions and 11 deletions
|
|
@ -42,6 +42,7 @@ const Popover = {
|
|||
// What selector (witin popover!) to use for determining center of popover
|
||||
overlayCentersSelector: String
|
||||
},
|
||||
inject: ['popoversZLayer'], // override popover z layer
|
||||
data () {
|
||||
return {
|
||||
hidden: true,
|
||||
|
|
@ -168,6 +169,9 @@ const Popover = {
|
|||
top: `${Math.round(translateY)}px`
|
||||
}
|
||||
|
||||
if (this.popoversZLayer) {
|
||||
this.styles['--ZI_popover_override'] = `var(--ZI_${this.popoversZLayer}_popovers)`
|
||||
}
|
||||
if (parentScreenBox) {
|
||||
this.styles.maxWidth = `${Math.round(parentScreenBox.width)}px`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
|
||||
.popover {
|
||||
z-index: 90000;
|
||||
z-index: var(--ZI_popover_override, var(--ZI_popovers));
|
||||
position: fixed;
|
||||
min-width: 0;
|
||||
max-width: calc(100vw - 20px);
|
||||
|
|
@ -87,7 +87,7 @@
|
|||
text-align: left;
|
||||
list-style: none;
|
||||
max-width: 100vw;
|
||||
z-index: 200;
|
||||
z-index: var(--ZI_popover_override, var(--ZI_popovers));
|
||||
white-space: nowrap;
|
||||
|
||||
.dropdown-divider {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue