diff --git a/src/components/sidecard/Sidecard.jsx b/src/components/sidecard/Sidecard.jsx index 8baf4ef..9cd69bf 100644 --- a/src/components/sidecard/Sidecard.jsx +++ b/src/components/sidecard/Sidecard.jsx @@ -5,13 +5,12 @@ import { faMicrophone, } from "@fortawesome/free-solid-svg-icons"; import { useLanguage } from "@/src/context/LanguageContext"; -import { Link, useNavigate } from "react-router-dom"; +import { Link } from "react-router-dom"; import useToolTipPosition from "@/src/hooks/useToolTipPosition"; import Qtip from "../qtip/Qtip"; function Sidecard({ data, label, className }) { const { language } = useLanguage(); - const navigate = useNavigate(); const [hoverTimeout, setHoverTimeout] = useState(null); const handleMouseEnter = (item, index) => { const timeout = setTimeout(() => { @@ -37,70 +36,71 @@ function Sidecard({ data, label, className }) { key={index} className="group" ref={(el) => (cardRefs.current[index] = el)} + onMouseEnter={() => handleMouseEnter(item, index)} + onMouseLeave={handleMouseLeave} > -
- {hoveredItem === item.id + index && window.innerWidth > 1024 && ( -
- -
- )} - {item.title} navigate(`/watch/${item.id}`)} - onMouseEnter={() => handleMouseEnter(item, index)} - onMouseLeave={handleMouseLeave} - /> -
- window.scrollTo({ top: 0, behavior: "smooth" })} - > - {language === "EN" ? item.title : item.japanese_title} - -
- {item.tvInfo?.sub && ( -
- - - {item.tvInfo.sub} + window.scrollTo({ top: 0, behavior: "smooth" })} + className="block" + > +
+ {hoveredItem === item.id + index && window.innerWidth > 1024 && ( +
+ +
+ )} + {item.title} +
+ + {language === "EN" ? item.title : item.japanese_title} + +
+ {item.tvInfo?.sub && ( +
+ + + {item.tvInfo.sub} + +
+ )} + {item.tvInfo?.dub && ( +
+ + + {item.tvInfo.dub} + +
+ )} + {item.tvInfo?.showType && ( + + {item.tvInfo.showType} -
- )} - {item.tvInfo?.dub && ( -
- - - {item.tvInfo.dub} - -
- )} - {item.tvInfo?.showType && ( - - {item.tvInfo.showType} - - )} + )} +
-
+
))}
diff --git a/src/pages/watch/Watch.jsx b/src/pages/watch/Watch.jsx index 5702804..16f5bed 100644 --- a/src/pages/watch/Watch.jsx +++ b/src/pages/watch/Watch.jsx @@ -226,7 +226,7 @@ export default function Watch() { }, [animeId, animeInfo]); return (
-
+
{/* Left Column - Player, Controls, Servers */}