logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 832d7f2354b2f70e4100ac343c6ac4dd985eac3a
parent fa398b5e7aeb53709618d69de086a08b2248ba8c
Author: Henry Jameson <me@hjkos.com>
Date:   Wed,  8 Jun 2022 03:18:37 +0300

more fixes to chat popovers

Diffstat:

Msrc/components/chat_message/chat_message.vue2+-
Msrc/components/popover/popover.js5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/chat_message/chat_message.vue b/src/components/chat_message/chat_message.vue @@ -44,7 +44,7 @@ <Popover trigger="click" placement="top" - :bound-to-selector="isCurrentUser ? '' : '.scrollable-message-list'" + bound-to-selector=".chat-view-inner" :bound-to="{ x: 'container' }" :margin="popoverMarginStyle" @show="menuOpened = true" diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js @@ -129,9 +129,12 @@ const Popover = { opacity: 1, left: `${Math.round(origin.x + translateX)}px`, top: `${Math.round(origin.y + translateY)}px`, - maxWidth: `${parentScreenBox ? Math.round(parentScreenBox.width) : 0}px`, position: 'fixed' } + + if (parentScreenBox) { + this.styles.maxWidth = `${Math.round(parentScreenBox.width)}px` + } }, showPopover () { const wasHidden = this.hidden