Skip to content

Commit aa80b58

Browse files
committed
fix linewidth
1 parent 766e036 commit aa80b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/feedback/src/screenshot/components/ScreenshotEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ function drawRect(rect: Rect, ctx: CanvasRenderingContext2D, scale: number = 1):
9494
computedStyle.getPropertyValue('--accent-background');
9595
}
9696
ctx.strokeStyle = strokeColor || 'white';
97-
ctx.lineWidth = 2;
9897
ctx.strokeRect(scaledX + 1, scaledY + 1, scaledWidth - 2, scaledHeight - 2);
9998

10099
break;
@@ -249,6 +248,7 @@ export function ScreenshotEditorFactory({
249248
ctx.fillRect(0, 0, graywashCanvas.width, graywashCanvas.height);
250249
}
251250

251+
ctx.lineWidth = 2;
252252
const scale = graywashCanvas.clientWidth / imageBuffer.width;
253253
drawCommands.forEach(rect => {
254254
drawRect(rect, ctx, scale);

0 commit comments

Comments
 (0)