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:
@@ -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>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user