Skip to content

Commit 11d4057

Browse files
authored
Merge pull request #54 from Arkkimaagi/patch-1
Fixes #53 with link label position, node background and arrow on hover
2 parents 69c0747 + b92515d commit 11d4057

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/components/Zigbee2mqttNetworkmap.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
}
2727
.link:hover, .node:hover {
2828
stroke: var(--zigbee2mqtt-networkmap-hover-color, #be385d);
29+
}
30+
.node:hover {
2931
stroke-width: 5px;
3032
}
3133
.link.selected {
@@ -37,9 +39,16 @@
3739
.link-label, .node-label {
3840
fill: var(--zigbee2mqtt-networkmap-label-color, #127862);
3941
}
42+
.node-label {
43+
stroke: var(--ha-card-background, var(--card-background-color, #fff));
44+
stroke-width: 0.5em;
45+
paint-order: stroke;
46+
stroke-opacity: 0.7;
47+
stroke-linejoin: round;
48+
}
4049
.link-label {
41-
-webkit-transform: translateY(-.5em);
42-
transform: translateY(-.5em);
50+
dominant-baseline: text-after-edge;
51+
dominant-baseline: ideographic;
4352
text-anchor: middle;
4453
}
4554
#m-end path {

0 commit comments

Comments
 (0)