Skip to content

Conversation

@huuitae
Copy link
Contributor

@huuitae huuitae commented Sep 29, 2025

📄 PR 내용 요약

좋아요 버튼 컴포넌트입니다.

✅ 작업 내용 상세

부모 컴포넌트에서 isLike prop을 전달받아 버튼의 스타일을 변경하도록 제작했습니다.
PC 반응형 스타일에서 gap6px인데 가로로 너무 길어보여서 4px로 줄여보았습니다.

좋아요 개수 표기 문구를 수정했습니다 십만 자리 수 까지는 ~만의 형태로 표기됩니다.

📸 스크린샷 (선택사항)

스크린샷 2025-09-30 01 11 18 스크린샷 2025-09-30 01 11 27 스크린샷 2025-10-01 16 28 58

💬 참고 사항

@huuitae huuitae self-assigned this Sep 29, 2025
@vercel
Copy link

vercel bot commented Sep 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
wine Ready Ready Preview Comment Oct 1, 2025 7:37am

Copy link
Member

@junye0l junye0l left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

코멘트 확인 부탁드립니다. 🙇🏻

import IconButton from "./icon-button";
import ArrowButton from "./arrow-button";
import ICON_MAP from "../icon/icon-map";
import LikeButton from "./like-button";
Copy link
Member

Choose a reason for hiding this comment

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

스토리북 파일에 추가 되었다면, chromatic 라벨을 추가하는게 좋을 것 같아요!

Copy link
Member

@wlrnjs wlrnjs left a comment

Choose a reason for hiding this comment

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

수고하셨습니다. 코멘트 확인해주세요!

*/
const LikeButton = ({ isLike, count, ...props }: LikeButtonProps) => {
return (
<div>
Copy link
Member

Choose a reason for hiding this comment

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

div 래핑은 불필요해서 제거해도 괜찮을듯 합니다!

Comment on lines 25 to 27
"cursor-pointer rounded-lg py-1 pl-2 pr-3",
"mobile:h-8 mobile:gap-[2px]",
"tablet:h-8 tablet:gap-[2px]",
Copy link
Member

Choose a reason for hiding this comment

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

현재 mobile:h-8 mobile:gap-[2px], tablet:h-8 tablet:gap-[2px]는 동일한 값이라
base 스타일로 h-8 gap-[2px]만 선언해도 동일하게 동작합니다.
PC 구간만 오버라이드하면 코드가 더 간결해질 것 같아요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

적용해본 결과 모바일 해상도에서는 원하는 디자인으로 나오지만 태블릿 해상도에서는 디자인 적용이 되지 않습니다.

스크린샷 2025-09-30 09 14 25

"mobile:h-8 mobile:gap-[2px]", 이 부분은 삭제하고 "tablet:h-8 tablet:gap-[2px]", 이 부분은 남겨놓아야할 것 같습니다.

Copy link
Member

Choose a reason for hiding this comment

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

테스트 해봤는데 Button 컴포넌트 내부에 있는 스타일 요소 때문에 제가 말씀드린 방식으로는 적용되지 않는 것 같네요.
이런 경우에는 휘태님께서 작성해주신 코드를 사용하는게 올바른것 같습니다.

원래는 저 방식이 맞는데 왜 안되나 했네요.. 확인 감사합니다!

@huuitae huuitae added chromatic 스토리북 배포 테스트 🎨 Design UI/UX, 디자인 변경 labels Sep 30, 2025
wlrnjs
wlrnjs previously approved these changes Sep 30, 2025
@junye0l junye0l added this to WHYNE Sep 30, 2025
@junye0l junye0l moved this to 검토 중 in WHYNE Sep 30, 2025
@huuitae huuitae merged commit f6f81f2 into develop Oct 1, 2025
3 checks passed
@huuitae huuitae deleted the design/like-button branch October 1, 2025 07:38
@github-project-automation github-project-automation bot moved this from 검토 중 to 완료 in WHYNE Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chromatic 스토리북 배포 테스트 🎨 Design UI/UX, 디자인 변경

Projects

Status: 완료

Development

Successfully merging this pull request may close these issues.

4 participants