chat-ui / src /lib /utils /isDesktop.ts
Mishig
[Assisntans filter] More UX fixes (#908)
09eb258 unverified
raw history blame
No virus
211 Bytes
// Approximate width from which we disable autofocus
const TABLET_VIEWPORT_WIDTH = 768;
export function isDesktop(window: Window) {
const { innerWidth } = window;
return innerWidth > TABLET_VIEWPORT_WIDTH;
}