feat: enhance mobile experience by adjusting layout and keyboard handling

This commit is contained in:
Bohdan Triapitsyn
2025-12-18 11:20:37 +02:00
parent db673d8dc4
commit d28c4e9da6
7 changed files with 283 additions and 17 deletions
+9
View File
@@ -40,6 +40,15 @@ const setRootDeviceAttributes = (
const isMobile = deviceType === 'mobile';
const isTablet = deviceType === 'tablet';
root.classList.remove('device-mobile', 'device-tablet', 'device-desktop');
root.classList.add(
deviceType === 'mobile'
? 'device-mobile'
: deviceType === 'tablet'
? 'device-tablet'
: 'device-desktop'
);
if (isDesktopRuntime) {
root.classList.add('desktop-runtime');
root.style.setProperty('--is-mobile', '0');