mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-18 20:14:41 +08:00
fix: scrollable row index
This commit is contained in:
@@ -109,20 +109,22 @@ export default function ScrollableRow({
|
|||||||
</div>
|
</div>
|
||||||
{showLeftScroll && (
|
{showLeftScroll && (
|
||||||
<div
|
<div
|
||||||
className={`hidden sm:flex absolute left-0 top-0 bottom-0 w-16 items-center justify-center z-50 transition-opacity duration-200 ${
|
className={`hidden sm:flex absolute left-0 top-0 bottom-0 w-16 items-center justify-center z-[600] transition-opacity duration-200 ${
|
||||||
isHovered ? 'opacity-100' : 'opacity-0'
|
isHovered ? 'opacity-100' : 'opacity-0'
|
||||||
}`}
|
}`}
|
||||||
style={{
|
style={{
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
|
pointerEvents: 'none', // 允许点击穿透
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
className='absolute inset-0'
|
|
||||||
onClick={(e) => e.stopPropagation()}
|
|
||||||
/>
|
|
||||||
<div
|
<div
|
||||||
className='absolute inset-0 flex items-center justify-center'
|
className='absolute inset-0 flex items-center justify-center'
|
||||||
style={{ top: '40%', bottom: '60%', left: '-4.5rem' }}
|
style={{
|
||||||
|
top: '40%',
|
||||||
|
bottom: '60%',
|
||||||
|
left: '-4.5rem',
|
||||||
|
pointerEvents: 'auto',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
onClick={handleScrollLeftClick}
|
onClick={handleScrollLeftClick}
|
||||||
@@ -136,20 +138,22 @@ export default function ScrollableRow({
|
|||||||
|
|
||||||
{showRightScroll && (
|
{showRightScroll && (
|
||||||
<div
|
<div
|
||||||
className={`hidden sm:flex absolute right-0 top-0 bottom-0 w-16 items-center justify-center z-50 transition-opacity duration-200 ${
|
className={`hidden sm:flex absolute right-0 top-0 bottom-0 w-16 items-center justify-center z-[600] transition-opacity duration-200 ${
|
||||||
isHovered ? 'opacity-100' : 'opacity-0'
|
isHovered ? 'opacity-100' : 'opacity-0'
|
||||||
}`}
|
}`}
|
||||||
style={{
|
style={{
|
||||||
background: 'transparent',
|
background: 'transparent',
|
||||||
|
pointerEvents: 'none', // 允许点击穿透
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
|
||||||
className='absolute inset-0'
|
|
||||||
onClick={(e) => e.stopPropagation()}
|
|
||||||
/>
|
|
||||||
<div
|
<div
|
||||||
className='absolute inset-0 flex items-center justify-center'
|
className='absolute inset-0 flex items-center justify-center'
|
||||||
style={{ top: '40%', bottom: '60%', right: '-4.5rem' }}
|
style={{
|
||||||
|
top: '40%',
|
||||||
|
bottom: '60%',
|
||||||
|
right: '-4.5rem',
|
||||||
|
pointerEvents: 'auto',
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
onClick={handleScrollRightClick}
|
onClick={handleScrollRightClick}
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ export default function VideoCard({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className='group relative w-full rounded-lg bg-transparent cursor-pointer transition-all duration-300 ease-in-out hover:scale-[1.05] hover:z-[9999]'
|
className='group relative w-full rounded-lg bg-transparent cursor-pointer transition-all duration-300 ease-in-out hover:scale-[1.05] hover:z-[500]'
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
>
|
>
|
||||||
{/* 海报容器 */}
|
{/* 海报容器 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user