Final(?) iOS cope

e98f38b6dacbb5ef809ea64d41e4e032ad63ff39

Cohee <18619528+Cohee1207@users.noreply.github.com>

3 files changed, +14 -7Showing whitespace changes
public/css/popup-safari-fix.css+8 -0
@@ -0,0 +1,8 @@
1+/* iPhone copium land */
2+@media screen and (max-width: 1000px) {
3+ .ios .popup .popup-body {
4+ height: fit-content;
5+ max-height: 95vh;
6+ max-height: 95svh;
7+ }
8+}
public/css/popup.css+2 -7
@@ -1,3 +1,5 @@
1+@import url('./popup-safari-fix.css');
2+
13dialog {
24 color: var(--SmartThemeBodyColor);
35}
@@ -171,10 +173,3 @@ body.no-blur .popup[open]::backdrop {
171173 backface-visibility: hidden;
172174}
173175
174-@media screen and (max-width: 1000px) {
175- .popup .popup-body {
176- height: fit-content;
177- max-height: 95vh;
178- max-height: 95svh;
179- }
180-}
public/scripts/RossAscends-mods.js+4 -0
@@ -725,6 +725,10 @@ export function initRossMods() {
725725 RA_autoconnect();
726726 }
727727
728+ if (getParsedUA()?.os?.name === 'iOS') {
729+ document.body.classList.add('ios');
730+ }
731+
728732 $('#main_api').change(function () {
729733 var PrevAPI = main_api;
730734 setTimeout(() => RA_autoconnect(PrevAPI), 100);