Merge pull request #153 from one-some/UI2

Fix context menu appearing before it should
This commit is contained in:
ebolam
2022-09-23 07:34:45 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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) */

View File

@@ -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