Merge pull request #59 from Rohithk2003/dev
removed white bg for dropdown
This commit is contained in:
commit
4f0b2f310e
2 changed files with 17 additions and 2 deletions
|
|
@ -53,6 +53,13 @@ const Movies = () => {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}, [id, tmdb]);
|
}, [id, tmdb]);
|
||||||
|
useEffect(() => {
|
||||||
|
document.addEventListener("mousedown", (event) => {
|
||||||
|
if (event.target !== "iframe") {
|
||||||
|
switchLight(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, [])
|
||||||
return (<>
|
return (<>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Play Movies | Yaps</title>
|
<title>Play Movies | Yaps</title>
|
||||||
|
|
|
||||||
|
|
@ -163,6 +163,14 @@ const Tv = () => {
|
||||||
else if (videoServer.includes("blackvid.space")) setVideoServer(`https://blackvid.space/embed?tmdb=${tmdb}&season=${tvDetails.season}&episode=${tvDetails.episode}`);
|
else if (videoServer.includes("blackvid.space")) setVideoServer(`https://blackvid.space/embed?tmdb=${tmdb}&season=${tvDetails.season}&episode=${tvDetails.episode}`);
|
||||||
}
|
}
|
||||||
}, [tvDetails]);
|
}, [tvDetails]);
|
||||||
|
//adding event listener for window to catch left click to remove light setting
|
||||||
|
useEffect(() => {
|
||||||
|
document.addEventListener("mousedown", (event) => {
|
||||||
|
if (event.target !== "iframe") {
|
||||||
|
switchLight(false)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, [])
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Head>
|
<Head>
|
||||||
|
|
@ -203,7 +211,7 @@ const Tv = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
className={`${prevBtn ? 'block' : 'hidden'} hover:scale-125 transition control-button duration-300 ease-in-out`}/>
|
className={`${prevBtn ? 'block' : 'hidden'} hover:scale-125 transition control-button duration-300 ease-in-out`}/>
|
||||||
<div
|
<div
|
||||||
className={"bg-[#222222] absolute left-5 z-50 hidden w-10 text-center tooltip-div"}>
|
className={"bg-[#222222] absolute left-5 z-50 hidden w-10 text-center tooltip-div"}>
|
||||||
Prev
|
Prev
|
||||||
|
|
@ -264,7 +272,7 @@ const Tv = () => {
|
||||||
setTvDetails({season: season, episode: 1})
|
setTvDetails({season: season, episode: 1})
|
||||||
setSeasonDropDown(false)
|
setSeasonDropDown(false)
|
||||||
}}
|
}}
|
||||||
className={`relative dropdown-scroll hover:bg-amber-700 hover:cursor-pointer pl-2 flex items-center justify-evenly w-full h-12 ${tvDetails.season === season ? 'bg-amber-700' : ''}`}>
|
className={`relative dropdown-scroll bg-app-semi-dark-blue hover:bg-amber-700 hover:cursor-pointer pl-2 flex items-center justify-evenly w-full h-12 ${tvDetails.season === season ? 'bg-amber-700' : ''}`}>
|
||||||
Season <span>{season}</span>
|
Season <span>{season}</span>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue