From 92208b0513c641fcdc210a976585e92ea3135516 Mon Sep 17 00:00:00 2001 From: jingrow Date: Wed, 19 Nov 2025 21:48:54 +0800 Subject: [PATCH] ensure comparison container size matches image display size and respects parent --- .../src/views/tools/RemoveBackground.vue | 105 +++++++++++++++++- 1 file changed, 99 insertions(+), 6 deletions(-) diff --git a/apps/jingrow/frontend/src/views/tools/RemoveBackground.vue b/apps/jingrow/frontend/src/views/tools/RemoveBackground.vue index 6392f0e..f37a072 100644 --- a/apps/jingrow/frontend/src/views/tools/RemoveBackground.vue +++ b/apps/jingrow/frontend/src/views/tools/RemoveBackground.vue @@ -72,7 +72,12 @@ class="comparison-image original-image" :style="{ clipPath: `inset(0 ${100 - splitPosition}% 0 0)` }" > - Original + Original @@ -80,7 +85,12 @@ class="comparison-image result-image" :style="{ clipPath: `inset(0 0 0 ${splitPosition}%)` }" > - Result + Result @@ -160,7 +170,7 @@