add redact color

This commit is contained in:
Pete Matsyburka
2026-06-15 14:45:06 +03:00
parent 73ce10b26a
commit d1535c4cd8
6 changed files with 68 additions and 14 deletions
@@ -36,7 +36,8 @@
<div
v-for="(rect, rectIndex) in page.redact"
:key="`redact-${rectIndex}`"
class="absolute bg-black"
class="absolute"
:class="rect.color === 'white' ? 'bg-white' : 'bg-black'"
:style="{
left: `${rect.x * 100}%`,
top: `${rect.y * 100}%`,