updated node hadles dark mode

This commit is contained in:
SwiftyOS
2024-11-28 15:36:23 +01:00
parent 100b667afc
commit fabf742601

View File

@@ -32,7 +32,7 @@ const NodeHandle: FC<HandleProps> = ({
const label = (
<div className="flex flex-grow flex-row">
<span className="text-m green flex items-end pr-2 text-gray-900">
<span className="text-m green flex items-end pr-2 text-gray-900 dark:text-gray-100">
{schema.title || beautifyString(keyName.toLowerCase())}
{isRequired ? "*" : ""}
</span>
@@ -45,10 +45,10 @@ const NodeHandle: FC<HandleProps> = ({
const Dot = ({ className = "" }) => {
const color = isConnected
? getTypeBgColor(schema.type || "any")
: "border-gray-300";
: "border-gray-300 dark:border-gray-600";
return (
<div
className={`${className} ${color} m-1 h-4 w-4 rounded-full border-2 bg-white transition-colors duration-100 group-hover:bg-gray-300`}
className={`${className} ${color} m-1 h-4 w-4 rounded-full border-2 bg-white dark:bg-slate-800 transition-colors duration-100 group-hover:bg-gray-300 dark:group-hover:bg-gray-700`}
/>
);
};