Skip to content

Commit 32c8ff8

Browse files
Copilotsensslen
andcommitted
Simplify pulse animation implementation
Co-authored-by: sensslen <3428860+sensslen@users.noreply.github.com>
1 parent 3546e69 commit 32c8ff8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/ConnectionStatus.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ const ConnectionStatus: React.FC<ConnectionStatusProps> = ({ status }) => {
2727

2828
return (
2929
<div className="flex items-center gap-2 text-sm" role="status" aria-label={config.text}>
30-
<span className={`${config.bg} w-3 h-3 rounded-full inline-block`}>
31-
{status === 'connecting' && (
32-
<span className="animate-pulse block w-full h-full rounded-full"></span>
33-
)}
34-
</span>
30+
<span className={`${config.bg} w-3 h-3 rounded-full inline-block ${status === 'connecting' ? 'animate-pulse' : ''}`} />
3531
<span className="font-medium">{config.text}</span>
3632
</div>
3733
);

0 commit comments

Comments
 (0)