Skip to content

Commit dbc89cb

Browse files
Ni-2alsakhaev
authored andcommitted
fix: add hover state to a capability with an action
1 parent b38abcb commit dbc89cb

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

apps/xen-tg-app/src/components/Agent.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,17 @@ const Agent: FC<TAgentProps> = ({ capabilitiy }) => {
7373
// })
7474
return (
7575
<div className="flex w-full items-center justify-between gap-3.5 rounded-[10px] bg-(--color-light-white-bg) p-2.5">
76-
<button className="flex flex-1 flex-col gap-0.5 overflow-hidden" onClick={action}>
77-
<div className="flex items-center gap-2 py-0.25 text-left text-[14px]/[100%] font-semibold wrap-anywhere">
76+
<button
77+
className={`flex flex-1 ${action ? 'cursor-pointer' : 'cursor-default'} flex-col gap-0.5 overflow-hidden`}
78+
onClick={action}
79+
>
80+
<div className="group flex items-center gap-2 py-0.25 text-left text-[14px]/[100%] font-semibold wrap-anywhere">
7881
{capabilitiy.title ?? capabilitiy.name}
79-
{action ? <ArrowForwardIcon /> : null}
82+
{action ? (
83+
<div className="text-[#7A818B] transition group-hover:text-(--color-main-text)">
84+
<ArrowForwardIcon />
85+
</div>
86+
) : null}
8087
</div>
8188
<div className="flex py-0.25 text-[12px]/[100%] font-normal text-(--color-gray-text)">
8289
{capabilitiy.domain}

0 commit comments

Comments
 (0)