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`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue