From b62b69303b84cf291e91d3687047424787243482 Mon Sep 17 00:00:00 2001 From: Garry Ing Date: Sun, 25 Apr 2021 20:38:08 -0400 Subject: [PATCH] centering emoji --- _sass/_digital-garden.scss | 5 +++++ assets/js/scripts.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_sass/_digital-garden.scss b/_sass/_digital-garden.scss index d172f57..ce34e4b 100644 --- a/_sass/_digital-garden.scss +++ b/_sass/_digital-garden.scss @@ -115,6 +115,11 @@ .status { pointer-events: none; + @-moz-document url-prefix() { + text { + transform: translateX(2px); + } + } } // Notes inline styles diff --git a/assets/js/scripts.js b/assets/js/scripts.js index e45580b..43797d0 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -306,7 +306,7 @@ if (typeof window.graphData !== 'undefined') { .text((d) => d.status) .attr('font-size', '18px') .attr('text-anchor', 'middle') - .attr('alignment-baseline', 'central') + .attr('dominant-baseline', 'central') .merge(status) node = node.data(nodesData, (d) => d.id).enter().append('circle')