-
Notifications
You must be signed in to change notification settings - Fork 2
[#165] 이미지 최적화, 토스트 메시지 수정, 확인 모달 수정 #215
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
junye0l
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
코멘트 확인 부탁드립니다. 🙇🏻
| @@ -1,5 +1,5 @@ | |||
| import Image from "next/image"; | |||
| import PlaceholderImgWine from "@/../public/images/placeholder/img-wine.svg"; | |||
| // import PlaceholderImgWine from "@/../public/images/placeholder/img-wine.svg"; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
주석 처리된 코드는 삭제하셔도 될 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
card-img.tsx 이미지 최적화, 모달 적용 확인 완료했습니다. 고생 많으셨습니다!
📄 PR 내용 요약
번들 크기를 줄이기 위한 이미지 최적화와 토스트 메시지가 사라지지 않는 버그를 수정했습니다.
✅ 작업 내용 상세
이미지 최적화
card-img.tsx,review-info.tsx,wine-info.tsx,wine-header.tsx파일에서직접 import 하던
PlaceholderImage를<Image />컴포넌트를 통해 불러오도록 수정했습니다.토스트 메시지 버그
에러 바운더리에서 토스트 메시지를 사용하기 위해
RootLayout파일에 선언해둔<ToastContainer />컴포넌트로 인한 버그로,관련된 코드들을 지웠습니다.
확인 모달 창의 와인 이름이 길면 스크롤이 생기는 문제
break-word를 추가하여 이름이 길어지면 줄바꿈이 되도록 했습니다....처럼 말 줄임표로 하려고 했으나 영어와 한글의 문자 인식이 달라 영어에서는 말줄임표가 되지만 한글은 줄바꿈이 되어 줄바꿈으로 통일했습니다.확인 모달 창 스크롤 방지가 안되는 문제
확인 모달창 전용으로 사용하는 스크롤 방지 로직을 추가했습니다.
📸 스크린샷 (선택사항)
이미지 최적화를 통해 최대
490kb->260kb까지 줄였습니다.💬 참고 사항
해당 파일 담당자분들 확인 부탁드립니다