Merge branch 'small-fixes-and-improvements' into shigusegubu-themes3

This commit is contained in:
Henry Jameson 2026-04-29 14:52:24 +03:00
commit 5b6d5f085e
2 changed files with 23 additions and 20 deletions

View file

@ -304,10 +304,13 @@ const Popover = {
} }
this.scrollable.addEventListener('scroll', this.onScroll) this.scrollable.addEventListener('scroll', this.onScroll)
this.scrollable.addEventListener('resize', this.onResize) 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') if (wasHidden) this.$emit('show')
this.updateStyles() this.updateStyles()
}) }, 1)
}, },
hidePopover() { hidePopover() {
if (this.disabled) return if (this.disabled) return

View file

@ -42,7 +42,7 @@
:trigger-attrs="triggerAttrs" :trigger-attrs="triggerAttrs"
class="quick-action" class="quick-action"
:tabindex="0" :tabindex="0"
placement="top" placement="bottom"
:offset="{ y: 5 }" :offset="{ y: 5 }"
remove-padding remove-padding
@close="onExtraClose" @close="onExtraClose"
@ -59,23 +59,6 @@
class="dropdown-menu extra-action-buttons" class="dropdown-menu extra-action-buttons"
role="menu" 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 <div
v-for="button in extraButtons" v-for="button in extraButtons"
:key="button.name" :key="button.name"
@ -111,6 +94,23 @@
/> />
</button> </button>
</div> </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> </div>
</template> </template>
</Popover> </Popover>