chiyadev / genshin-schedule

🕑 Genshin farming scheduler
https://genshin.chiya.dev
MIT License
72 stars 17 forks source link

Improve calculator buttons so they are always shown on any touch-based device #108

Closed bschouwerwou closed 2 years ago

bschouwerwou commented 2 years ago

Problem

Currently we're using a breakpoint to determine if we want to always show the calculator buttons or not. Unfortunately tablets don't benefit from that change (which I use regularly). Using a larger breakpoint might cover some tablets, but it won't cover larger ones like iPad Pro 12.9".

Solution

Instead of basing this off of a breakpoint, we can use a different type of media query to detect if it's a touch-based device.

References