File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
apps/frontend/src/components/launches Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -176,30 +176,32 @@ export const TagsComponent: FC<{
176
176
) ;
177
177
return (
178
178
< div
179
- className = "flex flex-row items-center gap-2 p-2 cursor-pointer hover:bg-customColor1 "
179
+ className = "flex flex-row items-center gap-2 p-2 cursor-pointer hover:bg-customColor1 group "
180
180
{ ...option }
181
181
>
182
- < input
183
- type = "checkbox"
184
- checked = {
185
- tagValue . findIndex ( ( f ) => f . label === option . option . label ) >
186
- - 1
187
- }
188
- readOnly
189
- />
182
+ { findTag && (
183
+ < input
184
+ type = "checkbox"
185
+ checked = {
186
+ tagValue . findIndex (
187
+ ( f ) => f . label === option . option . label
188
+ ) > - 1
189
+ }
190
+ readOnly
191
+ />
192
+ ) }
190
193
< div
191
194
className = "size-3 rounded-full flex-shrink-0"
192
195
style = { {
193
196
backgroundColor : findTag ?. color || '#942828' ,
194
197
} }
195
198
/>
196
199
{ option . option . label }
197
- { /* edit and delete butotns */ }
198
200
< div className = "flex items-center flex-grow flex-row-reverse" >
199
201
{ findTag && (
200
202
< Button
201
203
onClick = { edit ( findTag ) }
202
- className = "!h-6 !px-2 !rounded !text-xs !bg-third items-center hover:!opacity-70"
204
+ className = "!h-6 !px-2 !rounded !text-xs !bg-third items-center hover:!opacity-70 invisible group-hover:visible "
203
205
>
204
206
< svg
205
207
xmlns = "http://www.w3.org/2000/svg"
You can’t perform that action at this time.
0 commit comments