1
0
mirror of https://github.com/algora-io/tv.git synced 2025-02-04 01:53:25 +02:00

fix /embed styling

This commit is contained in:
zafer 2024-05-05 02:27:04 +03:00
parent 0997ab2865
commit 12e17848f4

View File

@ -290,6 +290,11 @@ let routeUpdated = () => {
return;
}
const { pathname } = new URL(window.location.href);
if (pathname.endsWith("/embed")) {
return;
}
const pipClasses = [
"fixed",
"bottom-0",
@ -299,7 +304,7 @@ let routeUpdated = () => {
"sm:w-[30vw]",
];
if (/^\/[^\/]+\/\d+$/.test(new URL(window.location.href).pathname)) {
if (/^\/[^\/]+\/\d+$/.test(pathname)) {
player.classList.add("lg:pr-[24rem]");
player.classList.remove(...pipClasses);
} else {