From b2f4a862243d93a8a5300d89e3bfc42d33dee1b9 Mon Sep 17 00:00:00 2001 From: Miika Kuisma Date: Mon, 11 May 2026 11:47:10 +0300 Subject: [PATCH] Hide keyboard shortcuts from mobile phone menubar --- src/puter-js/src/ui/components/PuterContextMenu.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/puter-js/src/ui/components/PuterContextMenu.js b/src/puter-js/src/ui/components/PuterContextMenu.js index 993f2185f..d954fb3ca 100644 --- a/src/puter-js/src/ui/components/PuterContextMenu.js +++ b/src/puter-js/src/ui/components/PuterContextMenu.js @@ -285,6 +285,14 @@ class PuterContextMenu extends PuterWebComponent { border-radius: 0; } + /* Keyboard shortcuts have no meaning on touch / small-screen + devices — hide them so labels can use the full width. */ + @media (max-width: 480px), (pointer: coarse) { + .shortcut { + display: none; + } + } + :host(.sheet-mode) .menu-item:hover:not(.disabled):not(.divider) { background-color: rgba(0, 122, 255, 0.1); color: inherit;