From 4c2a7ead016e6005dd7c2bead6bf4e7b8fa8e8b7 Mon Sep 17 00:00:00 2001 From: somebody Date: Thu, 22 Sep 2022 21:13:23 -0500 Subject: [PATCH 1/2] Fix context menu appearing before it should Go away! >:( --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index d928cd3f..b00bc850 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -4370,7 +4370,7 @@ $(document).ready(function(){ }); // Context menu - const contextMenu = $e("div", document.body, {id: "context-menu"}); + const contextMenu = $e("div", document.body, {id: "context-menu", classes: ["hidden"]}); for (const action of context_menu_actions) { // Null adds horizontal rule From 0e9118d35f71f9d457f2bd93d6bedf2c3bfb682f Mon Sep 17 00:00:00 2001 From: somebody Date: Thu, 22 Sep 2022 22:02:04 -0500 Subject: [PATCH 2/2] Also fix context menu How? Who knows! It just does! --- static/koboldai.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.css b/static/koboldai.css index e946d3c1..14917fca 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -2158,7 +2158,7 @@ body { /* Context Menu */ #context-menu { - position: absolute; + position: fixed; cursor: default; /* Nothing should be above the context menu (that I can think of) */