From 247783d941079b39da8a7732ab6745729ee20c49 Mon Sep 17 00:00:00 2001 From: Agahnim Date: Tue, 24 Mar 2026 16:57:49 +0100 Subject: [PATCH] global: i don't like div soup --- static/contextmenu.js | 7 +++---- static/style.css | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/static/contextmenu.js b/static/contextmenu.js index 3805c14..3daeb4f 100644 --- a/static/contextmenu.js +++ b/static/contextmenu.js @@ -2,12 +2,11 @@ if (window._contextMenuInitialized) return; window._contextMenuInitialized = true; - const menu = document.createElement('div'); - menu.className = 'context-menu'; + const menu = document.createElement('helo'); menu.innerHTML = ` - + - + `; menu.style.display = 'none'; document.body.appendChild(menu); diff --git a/static/style.css b/static/style.css index 8c63787..d6eaaa2 100644 --- a/static/style.css +++ b/static/style.css @@ -926,7 +926,7 @@ mini-player { } /* Context Menu */ -.context-menu { +helo { position: fixed; background: var(--win-bg-grey); border: 2px solid; @@ -939,7 +939,7 @@ mini-player { font-family: 'VT323', monospace; font-size: 1.2rem; - helo { + helo-content { display: flex; align-items: center;