fix: update ports icon (#2500)

This commit is contained in:
Jinjing
2026-05-21 00:22:31 -07:00
committed by GitHub
parent 96ae43ca4b
commit e6ec2fc244
3 changed files with 8 additions and 8 deletions
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo } from 'react'
import { Cable, Copy, ExternalLink, Trash2 } from 'lucide-react'
import { Plug, Copy, ExternalLink, Trash2 } from 'lucide-react'
import { toast } from 'sonner'
import { useAppStore } from '@/store'
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'
@@ -158,7 +158,7 @@ export function WorktreeCardPorts({ ports }: WorktreeCardPortsProps): React.JSX.
aria-label={`${ports.length} live ${ports.length === 1 ? 'port' : 'ports'}`}
onClick={(event) => event.stopPropagation()}
>
<Cable className="size-3.5" />
<Plug className="size-3.5" />
</button>
</HoverCardTrigger>
<HoverCardContent
@@ -169,7 +169,7 @@ export function WorktreeCardPorts({ ports }: WorktreeCardPortsProps): React.JSX.
onClick={(event) => event.stopPropagation()}
>
<div className="mb-1.5 flex items-center gap-1.5 px-1 text-[11px] font-semibold uppercase tracking-[0.05em] text-muted-foreground">
<Cable className="size-3" />
<Plug className="size-3" />
<span>Live Ports</span>
<span className="ml-auto font-normal tabular-nums text-muted-foreground/70">
{ports.length}
@@ -1,6 +1,6 @@
import React, { useCallback, useMemo, useState } from 'react'
import {
Cable,
Plug,
ChevronDown,
ChevronRight,
Copy,
@@ -227,7 +227,7 @@ export function PortsStatusSegment({ iconOnly }: PortsStatusSegmentProps): React
{refreshing ? (
<LoaderCircle className="size-3 animate-spin text-muted-foreground" />
) : (
<Cable className="size-3 text-muted-foreground" />
<Plug className="size-3 text-muted-foreground" />
)}
{!iconOnly && (
<span className="text-[11px] font-medium tabular-nums text-muted-foreground">
@@ -259,7 +259,7 @@ export function PortsStatusSegment({ iconOnly }: PortsStatusSegmentProps): React
>
<div className="flex items-center justify-between gap-2 border-b border-border px-3 py-1.5">
<div className="flex min-w-0 items-center gap-1.5 text-[11px] font-medium text-foreground">
<Cable className="size-3 shrink-0 text-muted-foreground" />
<Plug className="size-3 shrink-0 text-muted-foreground" />
<span className="truncate">Ports</span>
</div>
<span className="text-[11px] tabular-nums text-muted-foreground">
@@ -4,7 +4,7 @@ states stay consistent across Claude and Codex. */
import {
AlertTriangle,
Activity,
Cable,
Plug,
ChevronDown,
ChevronRight,
PanelsTopLeft,
@@ -995,7 +995,7 @@ function StatusBarInner({ floatingTerminalOpen }: StatusBarProps): React.JSX.Ele
checked={statusBarItems.includes('ports')}
onCheckedChange={() => toggleStatusBarItem('ports')}
>
<Cable className="size-3.5" />
<Plug className="size-3.5" />
Ports
</DropdownMenuCheckboxItem>
</DropdownMenuContent>