{"version":3,"file":"fixes.d8c6a6d4.js","sources":["../../app/frontend/entrypoints/fixes.js"],"sourcesContent":["// fix for 100vh issue on mobile devices\n// references:\n// https://dev.to/maciejtrzcinski/100vh-problem-with-ios-safari-3ge9\n// https://dev.to/admitkard/mobile-issue-with-100vh-height-100-100vh-3-solutions-3nae\n\nconst setAppViewportHeight = () => {\n // const height = document.documentElement.clientHeight\n const height = window.innerHeight\n\n document\n .querySelector(':root')\n .style\n .setProperty('--app-vh', height/100 + 'px')\n}\n\nconst updateAppViewportHeight = () => {\n window.requestAnimationFrame(setAppViewportHeight);\n}\n\nwindow.addEventListener('resize', updateAppViewportHeight)\nupdateAppViewportHeight()\n"],"names":["setAppViewportHeight","height","updateAppViewportHeight"],"mappings":"AAKA,MAAMA,EAAuB,IAAM,CAEjC,MAAMC,EAAS,OAAO,YAEtB,SACG,cAAc,OAAO,EACrB,MACA,YAAY,WAAYA,EAAO,IAAM,IAAI,CAC9C,EAEMC,EAA0B,IAAM,CACpC,OAAO,sBAAsBF,CAAoB,CACnD,EAEA,OAAO,iBAAiB,SAAUE,CAAuB,EACzDA,EAAuB"}