Skip to content

Commit

Permalink
Fix lines pointer-events
Browse files Browse the repository at this point in the history
  • Loading branch information
Bluesmile82 committed Oct 11, 2024
1 parent 7d21baf commit 16e8ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Header() {
);

return (
<header className={cn("fixed inset-0 w-full h-[90px] py-6 flex z-20 transition-colors duration-500",
<header className={cn("fixed inset-0 w-full h-[90px] py-6 flex z-40 transition-colors duration-500",
{
"bg-blue-900": isScrolled,
"bg-transparent": !isScrolled
Expand Down
4 changes: 2 additions & 2 deletions src/components/lines/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Lines = ({
return <>
<AnimatePresence>
{/* Vertical lines */}
<div className='vertical-lines container absolute inset-0 w-full h-full'>
<div className='vertical-lines container absolute inset-0 w-full h-full pointer-events-none'>
<motion.div className={cn('w-full h-full absolute inset-0 z-10',
verticalClassName,
hoveringColumnsNumber && gridColumns)}
Expand All @@ -57,7 +57,7 @@ const Lines = ({
</motion.div>
</div>
{/* Horizontal lines */}
<div className='horizontal-lines w-full h-full absolute inset-0 z-10'>
<div className='horizontal-lines w-full h-full absolute inset-0 z-10 pointer-events-none'>
{rows.map((y, index) => (
<motion.div
initial={{ y: -1000, opacity: 0 }}
Expand Down

0 comments on commit 16e8ca1

Please sign in to comment.