1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Narrower attachments

For #704
This commit is contained in:
xmflsct
2023-02-12 15:50:55 +01:00
parent 3eec9d1af0
commit 398f34d95d
5 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,6 @@
const adaptiveScale = (size: number, factor: number = 0) =>
import { Platform } from 'react-native'
export const adaptiveScale = (size: number, factor: number = 0) =>
factor ? Math.round(size + size * (factor / 8)) : size
export { adaptiveScale }
export const isLargeDevice = (Platform.OS === 'ios' && Platform.isPad) || Platform.OS === 'macos'