From 1998bf2b64ff484c4b6927b15443c4eca9087725 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Fri, 19 Jul 2024 10:50:34 +0200 Subject: [PATCH 1/2] Select whole name on focus when choosing identity --- src/components/CreateRoom.vue | 26 +++++++++++++++++++++++--- src/components/Join.vue | 10 ++++------ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/components/CreateRoom.vue b/src/components/CreateRoom.vue index 7835d2d..662a00b 100644 --- a/src/components/CreateRoom.vue +++ b/src/components/CreateRoom.vue @@ -105,6 +105,9 @@ + + + @@ -112,9 +115,11 @@
{{ $t("join.choose_name") }}
+ :value="selectedProfile"> From b9acda11573c4e1d2e09346862a892496b77bc62 Mon Sep 17 00:00:00 2001 From: N-Pex Date: Fri, 19 Jul 2024 14:38:06 +0200 Subject: [PATCH 2/2] Allow three dot menu to be opened on another message... without closing the first. --- src/components/Chat.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 133caa5..0396bad 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -1740,10 +1740,17 @@ export default { showContextMenuForEvent(e) { const event = e.event; - this.selectedEvent = event; - this.updateRecentEmojis(); - this.showContextMenu = !this.showContextMenu; - this.showContextMenuAnchor = e.anchor; + if (this.selectedEvent == event) { + this.showContextMenu = !this.showContextMenu; + } else { + this.showContextMenu = false; + this.$nextTick(() => { + this.selectedEvent = event; + this.updateRecentEmojis(); + this.showContextMenu = true; + this.showContextMenuAnchor = e.anchor; + }) + } }, showAvatarMenuForEvent(e) { @@ -1761,6 +1768,7 @@ export default { if (this.showContextMenu) { this.showContextMenu = false; this.showContextMenuAnchor = null; + this.selectedEvent = null; e.preventDefault(); } },