diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue index 8dc37d2b6..3a7f1283a 100644 --- a/src/components/extra_buttons/extra_buttons.vue +++ b/src/components/extra_buttons/extra_buttons.vue @@ -47,12 +47,10 @@ -
+ class="icon-ellipsis button-icon" + /> diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js index 3732c42ef..064016662 100644 --- a/src/components/popover/popover.js +++ b/src/components/popover/popover.js @@ -25,8 +25,9 @@ const Popover = { updateStyles () { if (this.hidden) return { opacity: 0 } - // Popover will be anchored around this element - const anchorEl = this.$refs.trigger || this.$el + // Popover will be anchored around this element, trigger ref is the container, so + // its children are what are inside the slot. Expect only one slot="trigger". + const anchorEl = (this.$refs.trigger && this.$refs.trigger.children[0]) || this.$el const screenBox = anchorEl.getBoundingClientRect() // Screen position of the origin point for popover const origin = { x: screenBox.left + screenBox.width * 0.5, y: screenBox.top } @@ -86,7 +87,7 @@ const Popover = { this.styles = { opacity: 1, - transform: `translate(${Math.floor(translateX)}px, ${Math.floor(translateY)}px)` + transform: `translate(${Math.floor(translateX)}px) translateY(${Math.floor(translateY)}px)` } }, showPopover () { diff --git a/src/components/react_button/react_button.vue b/src/components/react_button/react_button.vue index 8613143fd..ab4b4fcd0 100644 --- a/src/components/react_button/react_button.vue +++ b/src/components/react_button/react_button.vue @@ -2,6 +2,7 @@