mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Final(?) iOS cope
This commit is contained in:
8
public/css/popup-safari-fix.css
Normal file
8
public/css/popup-safari-fix.css
Normal file
@ -0,0 +1,8 @@
|
||||
/* iPhone copium land */
|
||||
@media screen and (max-width: 1000px) {
|
||||
.ios .popup .popup-body {
|
||||
height: fit-content;
|
||||
max-height: 95vh;
|
||||
max-height: 95svh;
|
||||
}
|
||||
}
|
@ -1,3 +1,5 @@
|
||||
@import url('./popup-safari-fix.css');
|
||||
|
||||
dialog {
|
||||
color: var(--SmartThemeBodyColor);
|
||||
}
|
||||
@ -171,10 +173,3 @@ body.no-blur .popup[open]::backdrop {
|
||||
backface-visibility: hidden;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1000px) {
|
||||
.popup .popup-body {
|
||||
height: fit-content;
|
||||
max-height: 95vh;
|
||||
max-height: 95svh;
|
||||
}
|
||||
}
|
||||
|
@ -725,6 +725,10 @@ export function initRossMods() {
|
||||
RA_autoconnect();
|
||||
}
|
||||
|
||||
if (getParsedUA()?.os?.name === 'iOS') {
|
||||
document.body.classList.add('ios');
|
||||
}
|
||||
|
||||
$('#main_api').change(function () {
|
||||
var PrevAPI = main_api;
|
||||
setTimeout(() => RA_autoconnect(PrevAPI), 100);
|
||||
|
Reference in New Issue
Block a user