Skip to content

Commit

Permalink
feat : 서머리 페이지 호버효과 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Shin-Sujin committed Jan 30, 2024
1 parent 8067442 commit 6cf0f11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/pages/newtab/SummaryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ const SummaryPage: React.FC<SummaryPageProps> = ({
flexDirection: 'column',
alignItems: 'flex-start',
overflow: 'auto',
transform: hoverState[index] ? 'translateY(-8px)' : 'none', // 호버 시 위로 이동
transition: 'transform 0.3s', // 부드러운 이동 효과
}}
onMouseEnter={() => handleMouseEnter(index)}
onMouseLeave={() => handleMouseLeave(index)}
onClick={() => openModalForSummary(Channel)}>
{/* 요약본 {index} */}
{/* 라인 */}
Expand Down Expand Up @@ -435,7 +439,11 @@ const SummaryPage: React.FC<SummaryPageProps> = ({
flexDirection: 'column',
alignItems: 'flex-start',
overflow: 'auto',
transform: hoverState[index] ? 'translateY(-8px)' : 'none', // 호버 시 위로 이동
transition: 'transform 0.3s', // 부드러운 이동 효과
}}
onMouseEnter={() => handleMouseEnter(index)}
onMouseLeave={() => handleMouseLeave(index)}
onClick={() => openModalForSummary(summaries)}>
{/* 요약본 {index} */}
{index !== 0 && (
Expand Down

0 comments on commit 6cf0f11

Please sign in to comment.