@@ -4,6 +4,7 @@ import { withTranslation } from 'react-i18next'
4
4
import { connect } from 'react-redux'
5
5
6
6
import { Badge } from '@/components/ui/badge'
7
+ import { cn } from '@/lib/css-utils'
7
8
8
9
import { classifyComments } from '../../state/video_debate/comments/selectors'
9
10
import { CommentsList } from '../Comments/CommentsList'
@@ -43,7 +44,7 @@ export default class StatementComments extends React.PureComponent {
43
44
const hasSpeakerComments = speakerComments . size > 0
44
45
45
46
return ! hasCommunityComments ? null : (
46
- < React . Fragment >
47
+ < div className = 'bg-[#fefefe]' >
47
48
{ hasSpeakerComments && (
48
49
< div className = "bg-neutral-100 text-center flex justify-center items-center gap-2 p-1" >
49
50
< Users size = { 14 } />
@@ -53,16 +54,16 @@ export default class StatementComments extends React.PureComponent {
53
54
< Separator />
54
55
{ hasSourcedComments && this . renderSourcedComments ( ) }
55
56
{ hasRegularComments && this . renderRegularComments ( ) }
56
- </ React . Fragment >
57
+ </ div >
57
58
)
58
59
}
59
60
60
61
renderSourcedComments ( ) {
61
62
const { approvingFacts, refutingFacts, setReplyToComment } = this . props
62
63
return (
63
- < div className = "flex flex-wrap" >
64
+ < div className = "flex flex-wrap shadow-[0_5px_5px_-5px_#bdbdbd] mb-2 " >
64
65
< CommentsList
65
- className = "w-full md:w-1/2 flex-grow basis-[450px] flex-col"
66
+ className = "w-full md:w-1/2 flex-grow basis-[450px] flex-col bg-red-100/5 pb-2 "
66
67
comments = { refutingFacts }
67
68
setReplyToComment = { setReplyToComment }
68
69
header = { this . renderCommentsListHeader (
@@ -73,8 +74,11 @@ export default class StatementComments extends React.PureComponent {
73
74
statementID = { this . props . statement . id }
74
75
commentType = "refute"
75
76
/>
77
+ < div className = "hidden md:flex items-stretch self-stretch my-2" >
78
+ < Separator orientation = 'vertical' className = 'bg-neutral-100' />
79
+ </ div >
76
80
< CommentsList
77
- className = "w-full md:w-1/2 flex-grow basis-[450px] flex-col"
81
+ className = "w-full md:w-1/2 flex-grow basis-[450px] flex-col bg-green-100/5 pb-2 "
78
82
comments = { approvingFacts }
79
83
setReplyToComment = { setReplyToComment }
80
84
header = { this . renderCommentsListHeader (
@@ -92,7 +96,7 @@ export default class StatementComments extends React.PureComponent {
92
96
renderRegularComments ( ) {
93
97
const { comments, setReplyToComment } = this . props
94
98
return (
95
- < div className = "p -3" >
99
+ < div className = "px -3" >
96
100
< CommentsList
97
101
comments = { comments }
98
102
setReplyToComment = { setReplyToComment }
@@ -104,9 +108,10 @@ export default class StatementComments extends React.PureComponent {
104
108
}
105
109
106
110
renderCommentsListHeader ( label , variant , score = null ) {
111
+ const separatorClassName = cn ( 'flex-1 mx-2' , variant === 'destructive' ? 'bg-red-800/30' : variant === 'success' ? 'bg-green-700/30' : '' )
107
112
return (
108
113
< div className = "flex mt-2 mb-3 items-center" >
109
- < Separator className = "flex-1 mx-2" />
114
+ < Separator className = { separatorClassName } />
110
115
< div className = "flex items-center gap-2 font-bold" >
111
116
< span > { this . props . t ( label ) } </ span >
112
117
{ score !== null && (
@@ -115,7 +120,7 @@ export default class StatementComments extends React.PureComponent {
115
120
</ Badge >
116
121
) }
117
122
</ div >
118
- < Separator className = "flex-1 mx-2" />
123
+ < Separator className = { separatorClassName } />
119
124
</ div >
120
125
)
121
126
}
0 commit comments