Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[픽스] 식단 펼치기 기능 화살표 방향 문제 해결 #17

Merged
merged 2 commits into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@
}

.arrow-icon {
transform: rotate(180deg);
transition: all 0.4s ease;

&__transform {
transform: rotate(180deg);
&--close {
transform: rotate(0);
Copy link
Contributor

@Gwak-Seungju Gwak-Seungju Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

열을 때처럼 닫힐 때도 transition이 있으면 좋을 것 같아요!
제가 착각했네요... ㅠ 그대로 진행해도 잘 작동하겠군요! 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR 스크린샷을 잘못 올려서 수정하였습니다 !

}
}
2 changes: 1 addition & 1 deletion src/pages/Coop/components/DiningBlocks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default function DiningBlocks({ diningType, date }: DiningBlocksProps) {
<svg
className={cn({
[styles['arrow-icon']]: true,
[styles['arrow-icon__transform']]: !hiddenDiningIdList.includes(dining.id),
[styles['arrow-icon--close']]: !hiddenDiningIdList.includes(dining.id),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿~

})}
width="20"
height="21"
Expand Down
Loading