Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
hyeonjiroh
approved these changes
Feb 6, 2025
Collaborator
hyeonjiroh
left a comment
There was a problem hiding this comment.
정말 많은 일이 있었네요... 고생 많으셨습니다!
| }; | ||
| }, []); | ||
|
|
||
| if (title.includes('아이돌') && window.innerWidth <= 375) { |
Collaborator
There was a problem hiding this comment.
저희 tailwind.config.js 파일 확인해보시면
screens: {
pc: '1200px',
tablet: '768px',
mobile: '375px',
},
모바일 화면 breakpoint가 375라 375px 이상이 모바일 화면인 것으로 알고 있습니다. 그래서 innerWidth가 768px 미만일 때 모바일 버전 투표 모달창을 보여주도록 조건을 바꿔줘야 할 것 같습니다!
Collaborator
There was a problem hiding this comment.
그리고 지금은 화면이 375px 이하일 때 '차트 투표하기를 눌렀을 경우에만 제대로 모바일 버전 모달창이 나오는 것 같습니다.
Collaborator
There was a problem hiding this comment.
그래서 여기서도 반응형을 사용하는 건 어떨까 싶습니다
const [isMobile, setIsMobile] = useState(false);
...
useEffect(() => {
const handleResize = () => {
setIsMobile(window.innerWidth < 768);
};
window.addEventListener('resize', handleResize);
return () => window.removeEventListener('resize', handleResize);
}, []);
Collaborator
|
아 그리고 아직 구현 안 하신 걸 수도 있지만, 투표 모달창에서 스크롤바 없애는 게 더 깔끔하고 좋을 것 같습니다! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




#️⃣ Issue Number
#45
📝 요약(Summary)
파일명 변경
이달의 차트 투표 모달창 레이아웃 구현
🛠️ PR 유형
어떤 변경 사항이 있나요?
📸스크린샷 (선택)
PC 버전


태블릿 버전


모바일 버전


💬 공유사항
css 추가 수정 예정입니다.
무한 스크롤 구현 예정입니다.
전체 작업이 끝난 후 시간 여유가 생긴다면 재사용성 고려해 코드 수정해 보겠습니다!