File tree 3 files changed +13
-18
lines changed
3 files changed +13
-18
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,11 @@ export function BoardCardCommentWrapper({
73
73
{ children }
74
74
</ FlexBox >
75
75
) : (
76
- < FlexBox direction = "row" className = "gap-[19px] pl-[15px]" >
76
+ < FlexBox
77
+ direction = "row"
78
+ justify = "start"
79
+ className = "w-full gap-[19px] pl-[15px]"
80
+ >
77
81
< Image
78
82
src = "/Feed/desktop/commentLine.svg"
79
83
alt = "댓글선"
Original file line number Diff line number Diff line change 1
1
/* eslint-disable jsx-a11y/no-static-element-interactions */
2
2
/* eslint-disable jsx-a11y/click-events-have-key-events */
3
- import { useRouter } from 'next/navigation' ;
4
-
5
3
export default function BoardCardComments ( {
6
- boardId,
7
4
userName,
8
5
content,
9
6
} : {
10
- boardId : number ;
11
7
userName : string ;
12
8
content : string ;
13
9
} ) {
14
- const router = useRouter ( ) ;
15
-
16
10
return (
17
- < div
18
- className = "flex flex-row hover:cursor-pointer"
19
- onClick = { ( ) => router . push ( `/board/${ boardId } ` ) }
20
- >
11
+ < div className = "flex flex-row hover:cursor-pointer" >
21
12
< div className = "inline-block mr-1 body2 text-grey-500" > { userName } </ div >
22
13
< div className = "inline body4 text-grey-500" > { content } </ div >
23
14
</ div >
Original file line number Diff line number Diff line change 2
2
/* eslint-disable jsx-a11y/click-events-have-key-events */
3
3
import { Board } from '@/types/types' ;
4
4
import { BoardCard } from '@/components/ui/BoardCard/BoardCardPackage' ;
5
+ import { useRouter } from 'next/navigation' ;
5
6
import FlexBox from '../FlexBox' ;
6
7
7
8
export default function FeedBoardCard ( { board } : { board : Board } ) {
9
+ const router = useRouter ( ) ;
10
+
8
11
return (
9
12
< FlexBox
10
13
direction = "column"
@@ -24,21 +27,18 @@ export default function FeedBoardCard({ board }: { board: Board }) {
24
27
likedCount = { board . likedCount }
25
28
isLiked = { board . boardLiked }
26
29
>
27
- < FlexBox
28
- direction = "column"
29
- justify = "start"
30
- align = "start"
31
- className = "max-h-[74px] overflow-hidden"
30
+ < div
31
+ className = "flex flex-col justify-start items-start max-h-[74px] overflow-hidden w-full hover:cursor-pointer"
32
+ onClick = { ( ) => router . push ( `/board/${ board . id } ` ) }
32
33
>
33
34
{ board . replyListDto ?. map ( ( comment ) => (
34
35
< BoardCard . Comments
35
36
key = { comment . id }
36
- boardId = { board . id }
37
37
userName = { comment . nickname }
38
38
content = { comment . content }
39
39
/>
40
40
) ) }
41
- </ FlexBox >
41
+ </ div >
42
42
</ BoardCard . BoardCardCommentWrapper >
43
43
</ BoardCard . Content >
44
44
</ FlexBox >
You can’t perform that action at this time.
0 commit comments