@@ -70,49 +70,51 @@ export default function CommentsTable({
7070 return (
7171 < section className = "w-[95%] max-w-4xl mx-auto" >
7272 < div className = "py-2 flex justify-between" >
73- < details className = "[&:open>summary]:rounded-b-none [&:open>summary]:border-b-transparent relative" >
74- < summary className = "border-2 px-2 py-2 rounded-xl flex flex-row items-center gap-x-2 w-min cursor-pointer" >
75- Filter < FunnelIcon className = "h-8 w-8" />
76- </ summary >
77- < form className = "flex flex-col border-2 absolute bg-white p-4 rounded-b-xl rounded-tr-xl w-max" >
78- < label >
79- < input
80- type = "checkbox"
81- value = "all"
82- checked = { filter . length === 0 }
83- onChange = { onFilterChange }
84- > </ input >
85- All
86- </ label >
87- < label >
88- < input
89- type = "checkbox"
90- value = "unmoderated"
91- checked = { filter . includes ( "unmoderated" ) }
92- onChange = { onFilterChange }
93- > </ input >
94- Unmoderated
95- </ label >
96- < label >
97- < input
98- type = "checkbox"
99- value = "approved"
100- checked = { filter . includes ( "approved" ) }
101- onChange = { onFilterChange }
102- > </ input >
103- Approved
104- </ label >
105- < label >
106- < input
107- type = "checkbox"
108- value = "rejected"
109- checked = { filter . includes ( "rejected" ) }
110- onChange = { onFilterChange }
111- > </ input >
112- Rejected
113- </ label >
114- </ form >
115- </ details >
73+ < div className = 'flex gap-x-4 items-center' >
74+ < details className = "[&:open>summary]:rounded-b-none [&:open>summary]:border-b-transparent relative" >
75+ < summary className = "border-2 px-2 py-2 rounded-xl flex flex-row items-center gap-x-2 w-min cursor-pointer" >
76+ Filter < FunnelIcon className = "h-8 w-8" />
77+ </ summary >
78+ < form className = "flex flex-col border-2 absolute bg-white p-4 rounded-b-xl rounded-tr-xl w-max" >
79+ < label >
80+ < input
81+ type = "checkbox"
82+ value = "all"
83+ checked = { filter . length === 0 }
84+ onChange = { onFilterChange }
85+ > </ input >
86+ All
87+ </ label >
88+ < label >
89+ < input
90+ type = "checkbox"
91+ value = "unmoderated"
92+ checked = { filter . includes ( "unmoderated" ) }
93+ onChange = { onFilterChange }
94+ > </ input >
95+ Unmoderated
96+ </ label >
97+ < label >
98+ < input
99+ type = "checkbox"
100+ value = "approved"
101+ checked = { filter . includes ( "approved" ) }
102+ onChange = { onFilterChange }
103+ > </ input >
104+ Approved
105+ </ label >
106+ < label >
107+ < input
108+ type = "checkbox"
109+ value = "rejected"
110+ checked = { filter . includes ( "rejected" ) }
111+ onChange = { onFilterChange }
112+ > </ input >
113+ Rejected
114+ </ label >
115+ </ form >
116+ </ details >
117+ </ div >
116118 { ! ! conversation && (
117119 < NewCommentDialog
118120 conversation = { conversation }
@@ -122,13 +124,10 @@ export default function CommentsTable({
122124 </ div >
123125 < div >
124126 < label >
125- < CSVLink
126- data = { dataCsv }
127- filename = { "conversation.csv" }
128- className = "btn btn-primary"
129- target = "_blank"
130- >
127+ < CSVLink data = { dataCsv } filename = { "conversation.csv" } target = "_blank" >
128+ < button className = 'p-2 bg-secondary text-white rounded-md' >
131129 Export CSV
130+ </ button >
132131 </ CSVLink >
133132 </ label >
134133 </ div >
0 commit comments