Skip to content

Commit 7ed5508

Browse files
committed
Updated port icons to directional arrows in GraphInspector
1 parent 0bb02a0 commit 7ed5508

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

src/components/GraphInspector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const GraphInspector = ({
8585
</div>
8686
{nodeType.inputs.map((input, index) => (
8787
<div key={index} className={`${styles.portContainer} ${config.isDarkTheme ? styles.portContainerDark : styles.portContainerLight}`}>
88-
<div className={styles.portIcon} />
88+
<div className={styles.portIcon} style={{ transform: 'rotate(180deg)' }} />
8989
<span>"{input.name}"</span>
9090
<span className={styles.portType}>({input.type})</span>
9191
</div>

src/components/GraphInspector.module.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,32 @@
148148
}
149149

150150
.portIcon {
151-
width: 12px;
151+
position: relative;
152+
width: 16px;
152153
height: 12px;
153-
border-radius: 50%;
154-
background-color: #FFA500;
154+
margin-left: 4px;
155+
display: flex;
156+
align-items: center;
157+
}
158+
159+
.portIcon::before {
160+
content: '';
161+
position: absolute;
162+
width: 10px;
163+
height: 2px;
164+
background-color: #4CAF50;
165+
left: 0;
166+
}
167+
168+
.portIcon::after {
169+
content: '';
170+
position: absolute;
171+
right: 0;
172+
width: 0;
173+
height: 0;
174+
border-top: 5px solid transparent;
175+
border-bottom: 5px solid transparent;
176+
border-left: 6px solid #4CAF50;
155177
}
156178

157179
.portType {

0 commit comments

Comments
 (0)