From 97475599a73d75f6c0e1f019a28c7e131bbd9061 Mon Sep 17 00:00:00 2001 From: Rusty Striker Date: Fri, 4 Oct 2024 14:46:20 +0300 Subject: [PATCH] custom right click menu (not finished, just showing and hiding currently) --- assets/web/index.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/assets/web/index.html b/assets/web/index.html index db6b233..27685d1 100644 --- a/assets/web/index.html +++ b/assets/web/index.html @@ -62,6 +62,10 @@
${m.text} ` + msg.oncontextmenu = () => { + document.getElementById('msg-context-menu').style.display = 'flex'; + return false; + } let history = document.getElementById('chat-history'); // this is to force update everytime we get a duplicate msg to allow msg editing (yay) let exists = Array.from(history.children).filter(e => e.style.order == m.id)[0]; @@ -137,7 +141,6 @@ background-color:#0f0f2f; } .chat-message { - background-color: #ffffd6; color: #000000; border-width: 2px; @@ -185,5 +188,10 @@ + - \ No newline at end of file +