@@ -4,6 +4,7 @@ import { withTranslation } from 'react-i18next'
44import { connect } from 'react-redux'
55
66import { Badge } from '@/components/ui/badge'
7+ import { cn } from '@/lib/css-utils'
78
89import { classifyComments } from '../../state/video_debate/comments/selectors'
910import { CommentsList } from '../Comments/CommentsList'
@@ -43,7 +44,7 @@ export default class StatementComments extends React.PureComponent {
4344 const hasSpeakerComments = speakerComments . size > 0
4445
4546 return ! hasCommunityComments ? null : (
46- < React . Fragment >
47+ < div className = "bg-[#fefefe]" >
4748 { hasSpeakerComments && (
4849 < div className = "bg-neutral-100 text-center flex justify-center items-center gap-2 p-1" >
4950 < Users size = { 14 } />
@@ -53,16 +54,16 @@ export default class StatementComments extends React.PureComponent {
5354 < Separator />
5455 { hasSourcedComments && this . renderSourcedComments ( ) }
5556 { hasRegularComments && this . renderRegularComments ( ) }
56- </ React . Fragment >
57+ </ div >
5758 )
5859 }
5960
6061 renderSourcedComments ( ) {
6162 const { approvingFacts, refutingFacts, setReplyToComment } = this . props
6263 return (
63- < div className = "flex flex-wrap" >
64+ < div className = "flex flex-wrap shadow-[0_5px_5px_-5px_#bdbdbd] mb-2 " >
6465 < 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 "
6667 comments = { refutingFacts }
6768 setReplyToComment = { setReplyToComment }
6869 header = { this . renderCommentsListHeader (
@@ -73,8 +74,11 @@ export default class StatementComments extends React.PureComponent {
7374 statementID = { this . props . statement . id }
7475 commentType = "refute"
7576 />
77+ < div className = "hidden md:flex items-stretch self-stretch my-2" >
78+ < Separator orientation = "vertical" className = "bg-neutral-100" />
79+ </ div >
7680 < 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 "
7882 comments = { approvingFacts }
7983 setReplyToComment = { setReplyToComment }
8084 header = { this . renderCommentsListHeader (
@@ -92,7 +96,7 @@ export default class StatementComments extends React.PureComponent {
9296 renderRegularComments ( ) {
9397 const { comments, setReplyToComment } = this . props
9498 return (
95- < div className = "p -3" >
99+ < div className = "px -3" >
96100 < CommentsList
97101 comments = { comments }
98102 setReplyToComment = { setReplyToComment }
@@ -104,9 +108,13 @@ export default class StatementComments extends React.PureComponent {
104108 }
105109
106110 renderCommentsListHeader ( label , variant , score = null ) {
111+ const separatorClassName = cn (
112+ 'flex-1 mx-2' ,
113+ variant === 'destructive' ? 'bg-red-800/30' : variant === 'success' ? 'bg-green-700/30' : '' ,
114+ )
107115 return (
108116 < div className = "flex mt-2 mb-3 items-center" >
109- < Separator className = "flex-1 mx-2" />
117+ < Separator className = { separatorClassName } />
110118 < div className = "flex items-center gap-2 font-bold" >
111119 < span > { this . props . t ( label ) } </ span >
112120 { score !== null && (
@@ -115,7 +123,7 @@ export default class StatementComments extends React.PureComponent {
115123 </ Badge >
116124 ) }
117125 </ div >
118- < Separator className = "flex-1 mx-2" />
126+ < Separator className = { separatorClassName } />
119127 </ div >
120128 )
121129 }
0 commit comments