actually fix submenu pos

This commit is contained in:
Freeplay 2023-02-12 22:31:55 -05:00
parent 06b37eccdd
commit a5a6d90771
1 changed files with 13 additions and 13 deletions

View File

@ -1,13 +1,13 @@
<template> <template>
<div tabindex="-1" v-focus> <div tabindex="-1" v-focus>
<div <FocusTrap v-bind:active="isActive">
ref="itemsEl" <div
class="rrevdjwt _popup _shadow" ref="itemsEl"
:class="{ center: align === 'center', asDrawer }" class="rrevdjwt _popup _shadow"
:style="{ width: (width && !asDrawer) ? width + 'px' : '', maxHeight: maxHeight ? maxHeight + 'px' : '' }" :class="{ center: align === 'center', asDrawer }"
@contextmenu.self="e => e.preventDefault()" :style="{ width: (width && !asDrawer) ? width + 'px' : '', maxHeight: maxHeight ? maxHeight + 'px' : '' }"
> @contextmenu.self="e => e.preventDefault()"
<FocusTrap v-bind:active="isActive"> >
<template v-for="(item, i) in items2"> <template v-for="(item, i) in items2">
<div v-if="item === null" class="divider"></div> <div v-if="item === null" class="divider"></div>
<span v-else-if="item.type === 'label'" class="label item"> <span v-else-if="item.type === 'label'" class="label item">
@ -49,11 +49,11 @@
<span v-if="items2.length === 0" class="none item"> <span v-if="items2.length === 0" class="none item">
<span>{{ i18n.ts.none }}</span> <span>{{ i18n.ts.none }}</span>
</span> </span>
</FocusTrap> </div>
</div> <div v-if="childMenu" class="child">
<div v-if="childMenu" class="child"> <XChild ref="child" :items="childMenu" :target-element="childTarget" :root-element="itemsEl" showing @actioned="childActioned"/>
<XChild ref="child" :items="childMenu" :target-element="childTarget" :root-element="itemsEl" showing @actioned="childActioned"/> </div>
</div> </FocusTrap>
</div> </div>
</template> </template>