Skip to content

Commit

Permalink
style: 모달 내 스크롤 노출에 대한 반응형 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoo9734 committed Jan 26, 2025
1 parent 0d2d96c commit 573035e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/components/Modal/CollectionModal/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use client';

Check failure on line 1 in src/components/Modal/CollectionModal/index.tsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

ESLint

ESLint: Install the 'eslint' package

import '@/styles/scroll.css';

import { useStore } from 'zustand';

import Icon from '@/components/Icon/Icon';
Expand All @@ -26,7 +28,7 @@ const CollectionModal = () => {
onClick={closeModal}
/>
</div>
<div className='grid tablet:grid-cols-4 grid-cols-1 gap-x-[33px] gap-y-[30px] max-h-[555px] tablet:pr-[34px] overflow-y-auto'>
<div className='grid tablet:grid-cols-4 grid-cols-1 gap-x-[33px] gap-y-[30px] max-h-[555px] tablet:pr-[34px] overflow-y-auto scroll-hide'>
<CreateCollectionUnit />
{collections.map((collection) => (
<CollectionUnit
Expand Down
9 changes: 0 additions & 9 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,4 @@
vertical-align: middle;
fill: currentColor; /* 텍스트 색상과 동일하게 적용 */
}

.scroll-hide::-webkit-scrollbar {
display: none;
}

.scroll-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
}
10 changes: 10 additions & 0 deletions src/styles/scroll.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@media (max-width: 1400px) {
.scroll-hide::-webkit-scrollbar {
display: none;
}

.scroll-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
}

0 comments on commit 573035e

Please sign in to comment.