Skip to content

Commit

Permalink
Work around Safari's lack of text transform support
Browse files Browse the repository at this point in the history
  • Loading branch information
DingoEatingFuzz committed Oct 15, 2020
1 parent 0d920ae commit 214ce4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions ui/app/styles/charts/topo-viz-node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ui/app/templates/components/topo-viz/node.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 214ce4a

Please sign in to comment.