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:
parent
0997ab2865
commit
12e17848f4
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user