Mobile/PWA spacing fixes (#11403)

* spacing on mobile landscape

* better icon placement when running as pwa

* better icon placement when running as pwa

* portrait padding only
This commit is contained in:
Josh Hawkins
2024-05-16 17:00:14 -05:00
committed by GitHub
parent 76f822630d
commit ba03d3b3e4
5 changed files with 20 additions and 7 deletions

3
web/src/utils/isPWA.ts Normal file
View File

@@ -0,0 +1,3 @@
export const isPWA =
("standalone" in window.navigator && window.navigator.standalone) ||
window.matchMedia("(display-mode: standalone)").matches;