Refine text position

pull/3/head
Amio 2018-07-11 02:01:41 +08:00
rodzic 60789d48eb
commit cfd9321c1f
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" fill="#000" opacity="0.2">${subject}</text>
<text x="5" y="13">${subject}</text>
<text x="${stTextStart + 1}" y="14" fill="#000" opacity="0.2">${status}</text>
<text x="${stTextStart}" y="13">${status}</text>
<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>
</g><script/>
</svg>
`