Skip to content

Commit

Permalink
chore: deny usage on mobile and tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Dec 22, 2024
1 parent 47b0c1c commit 8948db2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,18 @@ function App() {
}
}, [navigate, state]);

return (
return (window.innerHeight >= 500 && window.innerWidth >= 800 ? (
<textarea
className='h-full w-full'
data-testid='textarea'
onChange={handleStateChange}
onKeyDown={handleSaveAction}
placeholder='Start here...'
placeholder='Type something, Ctrl+S, copy URL and share to someone.'
value={state.content}
/>
) : (
<>Tablets and mobile screens are not yet supported. Please use a laptop or desktop.</>
)
)
}

Expand Down

0 comments on commit 8948db2

Please sign in to comment.