consistency with status action buttons popovers
This commit is contained in:
parent
11bbf91d5c
commit
0c2229eeed
4 changed files with 8 additions and 5 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
trigger="click"
|
trigger="click"
|
||||||
popover-class="emoji-picker popover-default"
|
popover-class="emoji-picker popover-default"
|
||||||
:hide-trigger="true"
|
:hide-trigger="true"
|
||||||
|
placement="bottom"
|
||||||
@show="onPopoverShown"
|
@show="onPopoverShown"
|
||||||
@close="onPopoverClosed"
|
@close="onPopoverClosed"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ import {
|
||||||
faBookmark,
|
faBookmark,
|
||||||
faCheck,
|
faCheck,
|
||||||
faChevronRight,
|
faChevronRight,
|
||||||
faChevronUp,
|
faChevronDown,
|
||||||
faExternalLinkAlt,
|
faExternalLinkAlt,
|
||||||
faEyeSlash,
|
faEyeSlash,
|
||||||
faHistory,
|
faHistory,
|
||||||
|
|
@ -39,7 +39,7 @@ library.add(
|
||||||
faWrench,
|
faWrench,
|
||||||
|
|
||||||
faChevronRight,
|
faChevronRight,
|
||||||
faChevronUp,
|
faChevronDown,
|
||||||
|
|
||||||
faReply,
|
faReply,
|
||||||
faRetweet,
|
faRetweet,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
:class="buttonInnerClass"
|
:class="buttonInnerClass"
|
||||||
role="menuitem"
|
role="menuitem"
|
||||||
type="button"
|
type="button"
|
||||||
|
placement="bottom"
|
||||||
:title="$t(button.label(funcArg))"
|
:title="$t(button.label(funcArg))"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
:tabindex="0"
|
:tabindex="0"
|
||||||
|
|
@ -54,7 +55,7 @@
|
||||||
<FAIcon
|
<FAIcon
|
||||||
v-if="button.dropdown?.()"
|
v-if="button.dropdown?.()"
|
||||||
class="chevron-icon"
|
class="chevron-icon"
|
||||||
:icon="extra ? 'chevron-right' : 'chevron-up'"
|
:icon="extra ? 'chevron-right' : 'chevron-down'"
|
||||||
fixed-width
|
fixed-width
|
||||||
/>
|
/>
|
||||||
</component>
|
</component>
|
||||||
|
|
@ -71,6 +72,7 @@
|
||||||
<Popover
|
<Popover
|
||||||
v-if="button.name === 'bookmark'"
|
v-if="button.name === 'bookmark'"
|
||||||
class="chevron-popover"
|
class="chevron-popover"
|
||||||
|
placement="bottom"
|
||||||
:trigger="extra ? 'hover' : 'click'"
|
:trigger="extra ? 'hover' : 'click'"
|
||||||
:placement="extra ? 'right' : 'top'"
|
:placement="extra ? 'right' : 'top'"
|
||||||
:offset="extra ? { x: 10 } : { y: 10 }"
|
:offset="extra ? { x: 10 } : { y: 10 }"
|
||||||
|
|
@ -79,7 +81,7 @@
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
class="chevron-icon"
|
class="chevron-icon"
|
||||||
:icon="extra ? 'chevron-right' : 'chevron-up'"
|
:icon="extra ? 'chevron-right' : 'chevron-down'"
|
||||||
fixed-width
|
fixed-width
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
v-if="button.dropdown?.()"
|
v-if="button.dropdown?.()"
|
||||||
:trigger="$attrs.extra ? 'hover' : 'click'"
|
:trigger="$attrs.extra ? 'hover' : 'click'"
|
||||||
:offset="{ y: 5 }"
|
:offset="{ y: 5 }"
|
||||||
:placement="$attrs.extra ? 'right' : 'top'"
|
:placement="$attrs.extra ? 'right' : 'bottom'"
|
||||||
>
|
>
|
||||||
<template #trigger>
|
<template #trigger>
|
||||||
<ActionButton
|
<ActionButton
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue