Skip to content

Commit fa28bbe

Browse files
committed
fix: remove horizontal padding from card header
1 parent a5f9340 commit fa28bbe

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

scripts/screenshots/card-dark.svg

Lines changed: 4 additions & 4 deletions
Loading

scripts/screenshots/card.svg

Lines changed: 4 additions & 4 deletions
Loading

src/renderer/card.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ const buildSVG = (data: CardData, colors: CardColors): string => {
132132

133133
const labelW = 82;
134134
const labelH = 15;
135-
const labelX = 8;
135+
const labelX = 0;
136136
const labelY = (topH - labelH) / 2;
137-
const weekX = labelX + labelW + 8;
137+
const weekX = labelX + labelW + 6;
138138

139139
const topBar = [
140140
`<rect x="${labelX}" y="${labelY}" width="${labelW}" height="${labelH}" rx="2" fill="${colors.accentBg}"/>`,
141141
`<text x="${labelX + labelW / 2}" y="${midY}" font-family="${font}" text-anchor="middle" font-size="9" font-weight="800" fill="#fff" letter-spacing="0.08em">WEEKLY NEWS</text>`,
142142
`<text x="${weekX}" y="${midY}" font-family="${font}" font-size="11" font-weight="700" fill="${colors.text}">${escapeXml(data.weekLabel)}</text>`,
143-
`<text x="${WIDTH - 10}" y="${midY}" font-family="${font}" font-size="10" fill="${colors.textSecondary}" text-anchor="end">@${escapeXml(data.username)}</text>`,
143+
`<text x="${WIDTH}" y="${midY}" font-family="${font}" font-size="10" fill="${colors.textSecondary}" text-anchor="end">@${escapeXml(data.username)}</text>`,
144144
`<line x1="0" y1="${topH}" x2="10000" y2="${topH}" stroke="${colors.border}" stroke-width="0.5"/>`,
145145
].join("\n");
146146

0 commit comments

Comments
 (0)