feat: position emoji picker next to button group on the top
This commit is contained in:
parent
02651326b5
commit
984133ba4a
|
@ -60,6 +60,10 @@ Rectangle {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
isMessageActive = true
|
isMessageActive = true
|
||||||
clickMessage(false, false, false, null, true)
|
clickMessage(false, false, false, null, true)
|
||||||
|
messageContextMenu.x = buttonsContainer.x + buttonsContainer.width - messageContextMenu.width
|
||||||
|
|
||||||
|
// The Math.max is to make sure that the menu is rendered
|
||||||
|
messageContextMenu.y -= Math.max(messageContextMenu.emojiContainer.height, 56) + Style.current.padding
|
||||||
}
|
}
|
||||||
onHoveredChanged: {
|
onHoveredChanged: {
|
||||||
buttonsContainer.hoverChanged(this.hovered)
|
buttonsContainer.hoverChanged(this.hovered)
|
||||||
|
|
|
@ -11,6 +11,7 @@ PopupMenu {
|
||||||
property bool isProfile: false
|
property bool isProfile: false
|
||||||
property bool isSticker: false
|
property bool isSticker: false
|
||||||
property bool emojiOnly: false
|
property bool emojiOnly: false
|
||||||
|
property alias emojiContainer: emojiContainer
|
||||||
|
|
||||||
id: messageContextMenu
|
id: messageContextMenu
|
||||||
width: messageContextMenu.isProfile ? profileHeader.width : emojiContainer.width
|
width: messageContextMenu.isProfile ? profileHeader.width : emojiContainer.width
|
||||||
|
|
Loading…
Reference in New Issue