kopia lustrzana https://github.com/badgen/badgen
Refine text position
rodzic
60789d48eb
commit
cfd9321c1f
|
@ -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>
|
||||
`
|
||||
|
|
Ładowanie…
Reference in New Issue