Work around Safari's lack of text transform support

This commit is contained in:
Michael Lange 2020-10-15 11:03:26 -07:00
parent 2309baf080
commit 329fecac6d
2 changed files with 6 additions and 3 deletions

View File

@ -64,8 +64,11 @@
.empty-text {
fill: $red;
transform: translate(50%, 50%);
text-anchor: middle;
alignment-baseline: central;
text {
text-anchor: middle;
alignment-baseline: central;
}
}
& + .topo-viz-node {

View File

@ -109,7 +109,7 @@
</g>
</g>
{{else}}
<text data-test-empty-message class="empty-text">Empty Client</text>
<g class="empty-text"><text data-test-empty-message>Empty Client</text></g>
{{/if}}
</svg>
</div>