Update GenericNode component styles for improved responsiveness and localization

- Adjust border radius calculation in GenericNode for better visual consistency.
- Update displayed text in GenericNode to enhance localization by removing the English label.
This commit is contained in:
Xin Wang
2026-07-14 13:02:38 +08:00
parent 6e8fc70c5a
commit 35cbee4786

View File

@@ -68,7 +68,7 @@ export function GenericNode({ id, type, data, selected }: NodeProps) {
<>
<div
aria-hidden
className="pointer-events-none absolute -inset-1 rounded-[1.2rem] border border-success/35 opacity-80 motion-safe:animate-pulse"
className="pointer-events-none absolute -inset-1 rounded-[calc(var(--radius-2xl)+0.25rem)] border border-success/35 opacity-80 motion-safe:animate-pulse"
/>
<div
aria-hidden
@@ -99,7 +99,7 @@ export function GenericNode({ id, type, data, selected }: NodeProps) {
<span className="absolute inline-flex h-full w-full rounded-full bg-success opacity-55 motion-safe:animate-ping" />
<span className="relative inline-flex h-2 w-2 rounded-full bg-success shadow-[0_0_8px_var(--success)]" />
</span>
LIVE ·
</div>
)}