fix: logic to construct SVG #2
@@ -83,35 +83,30 @@ async function screenshotDOM(el, opts = {}) {
|
||||
<style>
|
||||
.card { fill: #ffffff; stroke: #e5e7eb; stroke-width: 1.2; rx: 5; ry: 5; }
|
||||
.headword {
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
font-size: ${Math.round(width * 0.03)}px;
|
||||
font-weight: 700;
|
||||
fill: #111827;
|
||||
}
|
||||
.pron {
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
font-size: ${Math.round(width * 0.025)}px;
|
||||
fill: #6b7280;
|
||||
}
|
||||
.pos {
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
font-size: ${Math.round(width * 0.017)}px;
|
||||
font-weight: bold;
|
||||
fill: #666;
|
||||
}
|
||||
.def {
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
font-size: ${Math.round(width * 0.025)}px;
|
||||
fill: #111827;
|
||||
}
|
||||
.num {
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
font-size: ${Math.round(width * 0.025)}px;
|
||||
fill: #6b7280;
|
||||
}
|
||||
|
||||
text {
|
||||
white-space: pre-wrap;
|
||||
font-family: "Helvetica Neue", "Segoe UI", Helvetica, sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user