Skip to content

Commit

Permalink
style: hide shadow of filter btn and select in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Dec 2, 2024
1 parent d0b47cf commit e8fe748
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/(pages)/4q-gallery/_components/item-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Container({ category, tag, sort }: ContainerProps) {
};

const { ref, inView } = useInView({
threshold: 0.2,
threshold: 1,
triggerOnce: false,
onChange: (inView) => {
if (inView && !hasNextPage) {
Expand Down
13 changes: 8 additions & 5 deletions src/app/(pages)/4q-gallery/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
padding-top: 2px;
}

.filterBtn:hover,
.selectBox:hover {
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.filterIcon {
font-size: 16px;
margin-right: 5px;
Expand Down Expand Up @@ -153,3 +148,11 @@
margin-right: 0;
}
}


@media (min-width: 768px) {
.filterBtn:hover,
.selectBox:hover {
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
}

0 comments on commit e8fe748

Please sign in to comment.