diff --git a/packages/ui/src/app/styles/media.ts b/packages/ui/src/app/styles/media.ts index d838351f..0aeea315 100644 --- a/packages/ui/src/app/styles/media.ts +++ b/packages/ui/src/app/styles/media.ts @@ -1,4 +1,4 @@ -import { getWindow } from 'src/app/utils/web-api'; +import { getWindow, isOS } from 'src/app/utils/web-api'; import { isTmaPlatform } from 'src/app/utils/tma-api'; export type Device = 'mobile' | 'tablet' | 'desktop'; @@ -28,7 +28,7 @@ export function isDevice(device: keyof typeof maxWidth | 'desktop'): boolean { return width > maxWidth.mobile; default: case 'mobile': - return width <= maxWidth.mobile; + return width <= maxWidth.mobile || isOS('ios', 'android'); } }