fix: video content height for tablet

This commit is contained in:
Alejandro Gomez 2023-06-26 11:14:57 +02:00
parent 803d0910af
commit 954a875c10
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817

View File

@ -159,6 +159,8 @@ export function StreamPage() {
document.querySelector(".video-content")?.clientHeight || 0; document.querySelector(".video-content")?.clientHeight || 0;
if (window.innerWidth <= 480) { if (window.innerWidth <= 480) {
setHeight(contentHeight - videoContentHeight); setHeight(contentHeight - videoContentHeight);
} else if (window.innerWidth <= 768) {
setHeight(videoContentHeight);
} else { } else {
setHeight(undefined); setHeight(undefined);
} }