Skip to content

Commit ebdd5cb

Browse files
committed
styling update
1 parent 6513516 commit ebdd5cb

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

apps/frontend/src/components/launches/tags.component.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -176,30 +176,32 @@ export const TagsComponent: FC<{
176176
);
177177
return (
178178
<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"
180180
{...option}
181181
>
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+
)}
190193
<div
191194
className="size-3 rounded-full flex-shrink-0"
192195
style={{
193196
backgroundColor: findTag?.color || '#942828',
194197
}}
195198
/>
196199
{option.option.label}
197-
{/* edit and delete butotns */}
198200
<div className="flex items-center flex-grow flex-row-reverse">
199201
{findTag && (
200202
<Button
201203
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"
203205
>
204206
<svg
205207
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)