Vertically center node type symbols on Firefox.

This commit is contained in:
Kia Lam 2022-02-21 15:49:48 -08:00
parent 039c038cd7
commit fee47fe347

View File

@ -130,7 +130,7 @@ function MeshGraph({ data, showLegend, zoom }) {
.append('text')
.text((d) => renderNodeType(d.node_type))
.attr('text-anchor', 'middle')
.attr('alignment-baseline', 'central')
.attr('dominant-baseline', 'central')
.attr('fill', DEFAULT_NODE_LABEL_TEXT_COLOR);
// node hostname labels