diff --git a/pages/pickpickpick/[id]/apiHooks/comment/usePostPickComment.tsx b/pages/pickpickpick/[id]/apiHooks/comment/usePostPickComment.tsx index 53235294..e5d767c9 100644 --- a/pages/pickpickpick/[id]/apiHooks/comment/usePostPickComment.tsx +++ b/pages/pickpickpick/[id]/apiHooks/comment/usePostPickComment.tsx @@ -24,7 +24,7 @@ const postPickComment = async ({ pickId, contents, isPickVotePublic }: PostPickC return res.data; }; -export const usePostPickComment = () => { +export const usePostPickComment = ({ pickId }: { pickId: string }) => { const queryClient = useQueryClient(); const { setToastVisible } = useToastVisibleStore(); @@ -33,6 +33,7 @@ export const usePostPickComment = () => { onSuccess: async () => { await queryClient.invalidateQueries({ queryKey: ['pickCommentData'] }); await queryClient.invalidateQueries({ queryKey: ['getBestComments'] }); + await queryClient.invalidateQueries({ queryKey: ['getDetailPickData', pickId] }); setToastVisible({ message: '댓글을 성공적으로 작성했어요!', type: 'success' }); }, onError: (error: ErrorRespone) => { diff --git a/pages/pickpickpick/[id]/components/Comment.tsx b/pages/pickpickpick/[id]/components/Comment.tsx index c179848f..03519bb4 100644 --- a/pages/pickpickpick/[id]/components/Comment.tsx +++ b/pages/pickpickpick/[id]/components/Comment.tsx @@ -272,7 +272,8 @@ export default function Comment({
-
- ?? % -
+
+ ?? % +
@@ -70,13 +70,19 @@ export default function VoteButtonV2({ pickOptionData, dataIsVoted, pickOrder }: return ( <> -
- {percent} % -
- {voteTotalCount}표 +
+ + {percent} % + +
+
+
+ + {voteTotalCount}표 +
{isPicked ? ( diff --git a/pages/pickpickpick/[id]/index.page.tsx b/pages/pickpickpick/[id]/index.page.tsx index 6bd6a4cd..ffd3c267 100644 --- a/pages/pickpickpick/[id]/index.page.tsx +++ b/pages/pickpickpick/[id]/index.page.tsx @@ -97,7 +97,7 @@ const PickDetailPage: NextPageWithMeta = () => { >
-

+

{pickDetailData?.pickTitle}

{pickDetailData?.isAuthor && ( @@ -112,7 +112,9 @@ const PickDetailPage: NextPageWithMeta = () => { )}
-
+
{
{!isMobile && ( -
+
{
-

나도 고민했는데! 다른 픽픽픽 💘

+

+ 나도 고민했는데! 다른 픽픽픽 💘 +

{similarPicks?.map((similarData) => ( { - const mediaClassName = cn('w-full rounded-Radius16 h-[12rem]', { + const mediaClassName = cn('w-full h-[12rem]', { 'opacity-50': isUnpickedOption, + 'rounded-Radius10 ': isMobile, + 'rounded-Radius16 ': !isMobile, }); if (imageUrl) { @@ -84,7 +89,7 @@ export default function PickAnswerV2({ return (
  • @@ -105,7 +110,7 @@ export default function PickAnswerV2({ 'flex-1 h3 text-center flex items-center justify-center': !hasMedia, })} > - {!hasMedia ? {title} : title} + {!hasMedia ? {title} : title}

    {/* 선택지 이미지 또는 콘텐츠 */} diff --git a/pages/pickpickpick/components/PickHeader.tsx b/pages/pickpickpick/components/PickHeader.tsx index 9005770d..a042dac9 100644 --- a/pages/pickpickpick/components/PickHeader.tsx +++ b/pages/pickpickpick/components/PickHeader.tsx @@ -6,7 +6,7 @@ export const PickHeader = ({ onClick }: { onClick: () => void }) => { const { isMobile } = useMediaQueryContext(); return (

    diff --git a/pages/pickpickpick/components/PickInfoV2.tsx b/pages/pickpickpick/components/PickInfoV2.tsx index fb3ffc80..451bf2dc 100644 --- a/pages/pickpickpick/components/PickInfoV2.tsx +++ b/pages/pickpickpick/components/PickInfoV2.tsx @@ -79,7 +79,7 @@ export const MobilePickInfoV2 = () => { }); return ( -
    +

    개발고민 혼자 끙끙 앓지말고,
    diff --git a/pages/techblog/components/Comment.tsx b/pages/techblog/components/Comment.tsx index cd1079ad..10094c0c 100644 --- a/pages/techblog/components/Comment.tsx +++ b/pages/techblog/components/Comment.tsx @@ -233,9 +233,9 @@ export default function Comment({ // 댓글 wrapper 스타일 const commentDefaultStyle = - 'flex flex-col gap-[2.4rem] border-t-[0.1rem] border-t-gray400 pt-[2.4rem] pb-[3.2rem] px-[1.6rem]'; - const commentDesktopStyle = ''; - const commentMobileStyle = 'py-[3.2rem]'; + 'flex flex-col gap-[2.4rem] border-t-[0.1rem] border-t-gray400 pt-[2.4rem] pb-[3.2rem]'; + const commentDesktopStyle = 'px-[1.6rem]'; + const commentMobileStyle = 'py-[3.2rem] px-0'; const subCommentDesktopStyle = 'bg-gray800 px-[3.2rem] border-t-gray500'; const subCommentMobileStyle = 'bg-gray800 px-[1.6rem] border-t-gray500';