More tweak on text position

pull/3/head
Amio 2018-07-11 11:04:12 +08:00
rodzic 05d3fabf5b
commit 66acafbb1b
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -21,10 +21,10 @@ module.exports = function ({subject, status, color}) {
<path fill="#555" d="M${sbRectWidth} 0v20h-4v-20h4z"/>
<rect rx="3" width="${width}" height="20" fill="url(#a)"/>
<g fill="#fff" text-anchor="start" font-family="DejaVu Sans,Verdana,sans-serif" font-size="11">
<text x="6" y="14.4" fill="#000" opacity="0.2">${subject}</text>
<text x="5" y="13.4">${subject}</text>
<text x="${stTextStart + 1}" y="14.4" fill="#000" opacity="0.2">${status}</text>
<text x="${stTextStart}" y="13.4">${status}</text>
<text x="6" y="14.8" fill="#000" opacity="0.2">${subject}</text>
<text x="5" y="13.8">${subject}</text>
<text x="${stTextStart + 1}" y="14.8" fill="#000" opacity="0.2">${status}</text>
<text x="${stTextStart}" y="13.8">${status}</text>
</g><script/>
</svg>
`