feat(frontend): show menus as bottom sheets on phones

This commit is contained in:
Elias Schneider
2026-10-27 23:32:53 +01:00
parent 23a21c1949
commit c3d7390be1
2 changed files with 133 additions and 3 deletions
+8
View File
@@ -19,6 +19,14 @@
// Ignore errors
// Failing to set theme is not critical
}
// Menus, selects and the palette show their keyboard highlight ring only after keyboard use
addEventListener(
'keydown',
() => (document.documentElement.dataset.modality = 'keyboard'),
true
);
addEventListener('pointerdown', () => delete document.documentElement.dataset.modality, true);
</script>
%sveltekit.head%
</head>