From a4863350efd6085ef0b6045a9e3baa1b446bfa0b Mon Sep 17 00:00:00 2001 From: Alex-Gilbert Date: Fri, 20 Feb 2026 15:35:09 -0600 Subject: [PATCH] fix: remove blue box overlay from approved redactions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only the merged blue text is drawn — no box overlay needed. Co-Authored-By: Claude Opus 4.6 --- unredact/static/canvas.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/unredact/static/canvas.js b/unredact/static/canvas.js index 4eda535..da63549 100644 --- a/unredact/static/canvas.js +++ b/unredact/static/canvas.js @@ -264,13 +264,6 @@ function drawRedactionApproved(r, isActive) { const fontName = state.fonts.find(f => f.id === (o.fontId ?? a.font.id))?.name ?? a.font.name; const fontSize = o.fontSize ?? a.font.size; - // Always draw a box overlay on the redaction area so it stays visible - ctx.fillStyle = isActive ? "rgba(30, 100, 255, 0.25)" : "rgba(30, 100, 255, 0.12)"; - ctx.fillRect(r.x, r.y, r.w, r.h); - ctx.strokeStyle = isActive ? "rgba(30, 100, 255, 0.8)" : "rgba(30, 100, 255, 0.4)"; - ctx.lineWidth = isActive ? 2 : 1; - ctx.strokeRect(r.x, r.y, r.w, r.h); - // Draw the full merged text along the line const startX = a.line.x + (o.offsetX ?? 0); const startY = a.line.y + (o.offsetY ?? 0);