Merge branch 'small-fixes-and-improvements' into shigusegubu-themes3
This commit is contained in:
commit
5b6d5f085e
2 changed files with 23 additions and 20 deletions
|
|
@ -304,10 +304,13 @@ const Popover = {
|
|||
}
|
||||
this.scrollable.addEventListener('scroll', this.onScroll)
|
||||
this.scrollable.addEventListener('resize', this.onResize)
|
||||
this.$nextTick(() => {
|
||||
// My assumption is that upon showing popover initially has different size
|
||||
// as its contents are getting populating, so logic uses those incorrect
|
||||
// sizes as basis
|
||||
setTimeout(() => {
|
||||
if (wasHidden) this.$emit('show')
|
||||
this.updateStyles()
|
||||
})
|
||||
}, 1)
|
||||
},
|
||||
hidePopover() {
|
||||
if (this.disabled) return
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
:trigger-attrs="triggerAttrs"
|
||||
class="quick-action"
|
||||
:tabindex="0"
|
||||
placement="top"
|
||||
placement="bottom"
|
||||
:offset="{ y: 5 }"
|
||||
remove-padding
|
||||
@close="onExtraClose"
|
||||
|
|
@ -59,23 +59,6 @@
|
|||
class="dropdown-menu extra-action-buttons"
|
||||
role="menu"
|
||||
>
|
||||
<div
|
||||
v-if="currentUser"
|
||||
class="menu-item dropdown-item extra-action -icon"
|
||||
>
|
||||
<button
|
||||
class="main-button"
|
||||
role="menuitem"
|
||||
:tabindex="0"
|
||||
@click.stop="() => { resize(); showPin = !showPin }"
|
||||
>
|
||||
<FAIcon
|
||||
class="fa-scale-110"
|
||||
fixed-width
|
||||
icon="wrench"
|
||||
/><span>{{ $t('nav.edit_pinned') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
v-for="button in extraButtons"
|
||||
:key="button.name"
|
||||
|
|
@ -111,6 +94,23 @@
|
|||
/>
|
||||
</button>
|
||||
</div>
|
||||
<div
|
||||
v-if="currentUser"
|
||||
class="menu-item dropdown-item extra-action -icon"
|
||||
>
|
||||
<button
|
||||
class="main-button"
|
||||
role="menuitem"
|
||||
:tabindex="0"
|
||||
@click.stop="() => { resize(); showPin = !showPin }"
|
||||
>
|
||||
<FAIcon
|
||||
class="fa-scale-110"
|
||||
fixed-width
|
||||
icon="wrench"
|
||||
/><span>{{ $t('nav.edit_pinned') }}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</Popover>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue