Skip to content

Commit b2f4a86

Browse files
committed
Hide keyboard shortcuts from mobile phone menubar
1 parent 122811e commit b2f4a86

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/puter-js/src/ui/components/PuterContextMenu.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@ class PuterContextMenu extends PuterWebComponent {
285285
border-radius: 0;
286286
}
287287
288+
/* Keyboard shortcuts have no meaning on touch / small-screen
289+
devices — hide them so labels can use the full width. */
290+
@media (max-width: 480px), (pointer: coarse) {
291+
.shortcut {
292+
display: none;
293+
}
294+
}
295+
288296
:host(.sheet-mode) .menu-item:hover:not(.disabled):not(.divider) {
289297
background-color: rgba(0, 122, 255, 0.1);
290298
color: inherit;

0 commit comments

Comments
 (0)