Skip to content

Commit

Permalink
fix: adjust modals for mobile and tablet display
Browse files Browse the repository at this point in the history
  • Loading branch information
thekiba committed Feb 29, 2024
1 parent ae120b1 commit 063ad8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/app/styles/media.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 063ad8e

Please sign in to comment.