From 6524982029bf2f531d3a87abf75cb9bee66ced45 Mon Sep 17 00:00:00 2001 From: jariji Date: Sat, 11 Oct 2025 21:28:02 +0000 Subject: [PATCH] Show text on occlusion cards regardless of `occludeInactive`. Before this change, on an image occlusion card, a text box was visible during editing but not visible during review. This change makes text visible even if other shapes would be hidden. --- CONTRIBUTORS | 5 +++-- ts/routes/image-occlusion/review.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index cc651e198..38f515b9b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -189,7 +189,7 @@ Christian Donat Asuka Minato Dillon Baldwin Voczi -Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> +Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com> Themis Demetriades Luke Bartholomew Gregory Abrasaldo @@ -249,7 +249,8 @@ Toby Penner Danilo Spillebeen Matbe766 Amanda Sternberg -arold0 +arold0 +jariji ******************** diff --git a/ts/routes/image-occlusion/review.ts b/ts/routes/image-occlusion/review.ts index 4425a8141..38e70b93e 100644 --- a/ts/routes/image-occlusion/review.ts +++ b/ts/routes/image-occlusion/review.ts @@ -212,7 +212,7 @@ function drawShapes( strokeWidth: properties.activeBorder.width, }); } - for (const shape of inactiveShapes.filter((s) => s.occludeInactive)) { + for (const shape of inactiveShapes.filter((s) => s.occludeInactive || s.ordinal === 0)) { drawShape({ context, size,