Skip to content

Commit

Permalink
Fix: 스크롤 위치 오류 수정
Browse files Browse the repository at this point in the history
유저의 임의 스크롤을 막기 위해서 조치한 것이 정상적인 스크롤 동작을 방해함.
  • Loading branch information
yoouyeon committed Dec 22, 2024
1 parent b5acc2e commit 3aa3604
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
8 changes: 1 addition & 7 deletions components/takgu/Layout/MegaPhone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,10 @@ const Megaphone = () => {
<div className={styles.wrapper}>
{!!megaphoneData && megaphoneData.length > 0 && (
<Virtuoso
className={styles.virtuoso}
totalCount={megaphoneData.length}
data={megaphoneData}
ref={virtuoso}
itemContent={(index) => (
<MegaphoneItem
content={megaphoneData[index].content}
intraId={megaphoneData[index].intraId}
/>
)}
itemContent={(_, data) => <MegaphoneItem {...data} />}
style={{ height: '100%' }}
/>
)}
Expand Down
6 changes: 0 additions & 6 deletions styles/takgu/Layout/MegaPhone.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ $bannerHeight: 3rem;
justify-content: center;
align-items: center;
}

.virtuoso {
// NOTE : 라이브러리에서 인라인 스타일로 overflow-y: auto를 주고 있어 스크롤바가 생김
// 이를 상쇄하기 위해서 !important를 사용함.
overflow-y: hidden !important;
}

0 comments on commit 3aa3604

Please sign in to comment.