fix: ReleaseLink (16x9) - missing episode type if no episode.name is present

This commit is contained in:
Kentai Radiquum 2024-08-04 16:34:20 +05:00
parent c95e9da17f
commit b5520cb06c
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -24,11 +24,6 @@ export const ReleaseLink169 = (props: any) => {
<div className="relative w-full h-full overflow-hidden bg-center bg-no-repeat bg-cover rounded-sm group-hover:animate-bg_zoom animate-bg_zoom_rev group-hover:[background-size:110%] " style={{
backgroundImage: `linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%), url(${props.image})`,
}}>
{/* <img
className="absolute z-0 object-cover w-full h-full transition mix-blend-overlay group-hover:scale-110"
src={props.image}
alt=""
/> */}
<div className="absolute flex flex-wrap items-start justify-start gap-0.5 sm:gap-1 left-2 top-2">
<Chip
bg_color={
@ -74,7 +69,7 @@ export const ReleaseLink169 = (props: any) => {
name={
props.last_view_episode.name
? props.last_view_episode.name
: props.last_view_episode.position + 1
: `${props.last_view_episode.position + 1} серия`
}
name_2={
"last_view_timestamp" in props &&