forked from rDrama/rDrama
dynamic chat window size on mobile depending on orgy video height
parent
2babada6ea
commit
a6ed627c1b
|
@ -13,6 +13,10 @@ function add_playing_listener() {
|
||||||
const now = Date.now() / 1000;
|
const now = Date.now() / 1000;
|
||||||
const created_utc = orgy_file.dataset.created_utc
|
const created_utc = orgy_file.dataset.created_utc
|
||||||
orgy_file.currentTime = now - created_utc
|
orgy_file.currentTime = now - created_utc
|
||||||
|
if (screen_width < 768) {
|
||||||
|
const chat_window_height = innerHeight - orgy_file.offsetHeight - 211
|
||||||
|
document.getElementById('chat-window').setAttribute('style', `max-height: ${chat_window_height}px !important`)
|
||||||
|
}
|
||||||
}, {once : true});
|
}, {once : true});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue