diff --git a/apps/web/src/pages/dashboard/DashboardSidebar.tsx b/apps/web/src/pages/dashboard/DashboardSidebar.tsx index d0841c4..b4483f0 100644 --- a/apps/web/src/pages/dashboard/DashboardSidebar.tsx +++ b/apps/web/src/pages/dashboard/DashboardSidebar.tsx @@ -163,8 +163,7 @@ export function DashboardSidebar({ on={projection === 'globe'} onClick={isProjectionToggleDisabled ? undefined : () => setProjection((p) => (p === 'globe' ? 'mercator' : 'globe'))} title={isProjectionToggleDisabled ? '3D 모드 준비 중...' : '3D 지구본 투영'} - className="px-2 py-0.5 text-[9px]" - style={{ opacity: isProjectionToggleDisabled ? 0.4 : 1, cursor: isProjectionToggleDisabled ? 'not-allowed' : 'pointer' }} + className={`px-2 py-0.5 text-[9px]${isProjectionToggleDisabled ? " opacity-40 cursor-not-allowed" : ""}`} > 3D @@ -306,10 +305,10 @@ export function DashboardSidebar({
{AIS_API_BASE}/api/ais-target/search
상태
- + {snapshot.status.toUpperCase()} - {snapshot.error ? {snapshot.error} : null} + {snapshot.error ? {snapshot.error} : null}
최근 fetch
@@ -325,14 +324,14 @@ export function DashboardSidebar({
{legacyError ? ( -
legacy load error: {legacyError}
+
legacy load error: {legacyError}
) : (
데이터셋
/data/legacy/chinese-permitted.v1.json
매칭(현재 scope)
- {legacyVesselsAll.length}{' '} + {legacyVesselsAll.length}{' '} / {targetsInScope.length}
생성시각
@@ -415,7 +414,7 @@ export function DashboardSidebar({
{zonesError ? ( -
zones load error: {zonesError}
+
zones load error: {zonesError}
) : (
{zones ? `loaded (${zones.features.length} features)` : 'loading...'}
)} diff --git a/apps/web/src/widgets/topbar/Topbar.tsx b/apps/web/src/widgets/topbar/Topbar.tsx index 5a3a420..6c1c151 100644 --- a/apps/web/src/widgets/topbar/Topbar.tsx +++ b/apps/web/src/widgets/topbar/Topbar.tsx @@ -24,16 +24,16 @@ function StatChips({ total, fishing, transit, pairLinks, alarms }: Pick{total}
- 조업 {fishing} + 조업 {fishing}
- 항해 {transit} + 항해 {transit}
- 쌍연결 {pairLinks} + 쌍연결 {pairLinks}
- 경고 {alarms} + 경고 {alarms}
); @@ -71,9 +71,8 @@ export function Topbar({ total, fishing, transit, pairLinks, alarms, clock, admi {/* 로고 */}
WING diff --git a/packages/ui/src/components/ListItem.tsx b/packages/ui/src/components/ListItem.tsx index 852414b..46daee7 100644 --- a/packages/ui/src/components/ListItem.tsx +++ b/packages/ui/src/components/ListItem.tsx @@ -13,9 +13,9 @@ export function ListItem({ selected, highlighted, className, children, ...props className={cn( 'flex cursor-pointer items-center gap-1.5 rounded px-1.5 py-1 text-[10px] transition-colors duration-100 select-none', 'hover:bg-wing-card', - selected && 'bg-[rgba(14,234,255,0.16)] border-[rgba(14,234,255,0.55)]', - highlighted && !selected && 'bg-[rgba(245,158,11,0.16)] border border-[rgba(245,158,11,0.4)]', - selected && highlighted && 'bg-gradient-to-r from-[rgba(14,234,255,0.16)] to-[rgba(245,158,11,0.16)] border-[rgba(14,234,255,0.7)]', + selected && 'bg-[var(--wing-select-bg)] border-[var(--wing-select-border)]', + highlighted && !selected && 'bg-[var(--wing-highlight-bg)] border border-[var(--wing-highlight-border)]', + selected && highlighted && 'bg-gradient-to-r from-[var(--wing-select-bg)] to-[var(--wing-highlight-bg)] border-[var(--wing-select-border)]', className, )} {...props} diff --git a/packages/ui/src/theme/tokens.css b/packages/ui/src/theme/tokens.css index ccbe0e3..8099441 100644 --- a/packages/ui/src/theme/tokens.css +++ b/packages/ui/src/theme/tokens.css @@ -18,6 +18,10 @@ --wing-overlay: rgba(2, 6, 23, 0.42); --wing-card-alpha: rgba(30, 41, 59, 0.55); --wing-subtle: rgba(255, 255, 255, 0.03); + --wing-select-bg: rgba(14, 234, 255, 0.16); + --wing-select-border: rgba(14, 234, 255, 0.55); + --wing-highlight-bg: rgba(245, 158, 11, 0.16); + --wing-highlight-border: rgba(245, 158, 11, 0.4); /* Legacy aliases (backward compatibility) */ --bg: var(--wing-bg); @@ -48,6 +52,10 @@ --wing-overlay: rgba(0, 0, 0, 0.25); --wing-card-alpha: rgba(226, 232, 240, 0.6); --wing-subtle: rgba(0, 0, 0, 0.03); + --wing-select-bg: rgba(14, 182, 210, 0.14); + --wing-select-border: rgba(14, 182, 210, 0.5); + --wing-highlight-bg: rgba(217, 119, 6, 0.14); + --wing-highlight-border: rgba(217, 119, 6, 0.4); --bg: var(--wing-bg); --panel: var(--wing-surface);