mirror of
https://github.com/PR0M3TH3AN/unredact.git
synced 2026-10-27 08:40:29 +00:00
fix: remove blue box overlay from approved redactions
Only the merged blue text is drawn — no box overlay needed. Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
1 parent
bff50a1315
commit
a4863350ef
1 file changed
-7
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user