Skip to content

Commit

Permalink
feat: #comment made DeviceNodes look better
Browse files Browse the repository at this point in the history
  • Loading branch information
scrthq committed Sep 30, 2024
1 parent 5375565 commit 73ab4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DeviceNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ const DeviceNode: React.FC<DeviceNodeProps> = ({

const renderPorts = (ports: Port[], isOutput: boolean) => (
<div className={`${isOutput ? "outputs" : "inputs"} mt-2`}>
<h4 className="text-sm font-semibold">
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-200">
{isOutput ? "Outputs" : "Inputs"}
</h4>
{ports.map((port) => (
<div
key={port.id}
className={`text-xs cursor-pointer ${
isConnecting ? "hover:bg-blue-200 dark:hover:bg-blue-700" : ""
}`}
} text-gray-600 dark:text-gray-400`}
onClick={(e) => {
e.stopPropagation();
onPortClick(device.id, port.id, isOutput);
Expand Down

0 comments on commit 73ab4ca

Please sign in to comment.