Skip to content

Commit

Permalink
fix #148 - implement custom CSS for Connecting nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmx committed Aug 4, 2023
1 parent a0decda commit 25705fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
--am3-conntable-conn-keyed-color: rgba(0, 0, 0, 1);
--am3-conntable-conn-keyed-bg-color: rgba(255, 255, 224, 1);

/* Node connection table stats=Connecting colors */
--am3-conntable-conn-noconn-color: rgba(0,0,0,1);
--am3-conntable-conn-noconn-bg-color: rgba(255,255,255,1);
}

body {
Expand Down Expand Up @@ -110,6 +113,11 @@ body {
color: var(--am3-conntable-conn-keyed-color);
}

.node-conn-noconn {
background-color: var(--am3-conntable-conn-noconn-bg-color);
color: var(--am3-conntable-conn-noconn-color);
}

.node-bi {
vertical-align: -.125em;
color: var(--am3-nodetitle-color);
Expand Down
3 changes: 3 additions & 0 deletions web/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ function nodeConnTable(conns, keyed, keyednode) {
rowclass = "node-conn-keyed";
lastXmit = "00:00:00";
}
if ( c.CSTATE === "CONNECTING" ){
rowclass = "node-conn-noconn";
}

row = row.concat(`
<tr class="${rowclass}" onclick="nodeCmdShortcut(${x})">
Expand Down

0 comments on commit 25705fe

Please sign in to comment.