styles
This commit is contained in:
@@ -80,11 +80,6 @@ export function BaseNode({
|
||||
)}
|
||||
style={{ margin: 0, touchAction: "none", userSelect: "none" }}
|
||||
>
|
||||
<span
|
||||
className="absolute bottom-0 right-0 w-8 h-8 rounded-br border-l border-t border-border/30 hover:border-border/50"
|
||||
title="Drag corner to resize"
|
||||
aria-label="Resize node"
|
||||
/>
|
||||
</NodeResizeControl>
|
||||
)}
|
||||
{handles}
|
||||
@@ -113,23 +108,6 @@ export function BaseNodeHeader({
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The title text for the node. To maintain a native application feel, the title
|
||||
* text is not selectable.
|
||||
*/
|
||||
export function BaseNodeHeaderTitle({
|
||||
className,
|
||||
...props
|
||||
}: ComponentProps<"h3">) {
|
||||
return (
|
||||
<h3
|
||||
data-slot="base-node-title"
|
||||
className={cn("user-select-none flex-1 font-semibold", className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Standard node header: icon on the left, title taking the rest. Use for all node types.
|
||||
* Inlined so it does not depend on BaseNodeHeader/BaseNodeHeaderTitle (avoids reference errors with HMR).
|
||||
@@ -153,7 +131,7 @@ export function BaseNodeHeaderRow({
|
||||
{icon}
|
||||
<h3
|
||||
data-slot="base-node-title"
|
||||
className="user-select-none flex-1 font-semibold"
|
||||
className="user-select-none flex-1 font-mono"
|
||||
>
|
||||
{title}
|
||||
</h3>
|
||||
|
||||
Reference in New Issue
Block a user