fix: label overlap (#274)

This commit is contained in:
Anurag Hazra 2020-07-31 14:54:41 +05:30 committed by GitHub
parent 56e3745a5c
commit f0b89d0f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ const createTextNode = ({
<text class="stat bold" ${labelOffset} y="12.5">${label}:</text>
<text
class="stat"
x="${shiftValuePos ? 170 : 150}"
x="${shiftValuePos ? (showIcons ? 200 : 170) : 150}"
y="12.5"
data-testid="${id}"
>${kValue}</text>