Spaces:
Running
Running
added screenshot cropping
Browse files- app/static/index.html +4 -4
app/static/index.html
CHANGED
|
@@ -118,7 +118,7 @@
|
|
| 118 |
<div id="frames-info" class="mt-4 text-sm text-gray-500"></div>
|
| 119 |
</div>
|
| 120 |
|
| 121 |
-
<div id="preview-pane"
|
| 122 |
<div id="preview-wrap" class="relative inline-block">
|
| 123 |
<img id="result-image" class="max-h-64 max-w-full rounded-lg block bg-gray-50" alt="" />
|
| 124 |
<svg id="result-overlay" class="absolute top-0 left-0 w-full h-full pointer-events-none" preserveAspectRatio="none"></svg>
|
|
@@ -331,7 +331,7 @@
|
|
| 331 |
try { URL.revokeObjectURL(resultImg.src); } catch (_) {}
|
| 332 |
resultImg.removeAttribute("src");
|
| 333 |
}
|
| 334 |
-
$("preview-pane").
|
| 335 |
}
|
| 336 |
|
| 337 |
function showError(msg) {
|
|
@@ -387,7 +387,7 @@
|
|
| 387 |
const statusEl = $("preview-status");
|
| 388 |
|
| 389 |
if (!state.result || state.result.media_type !== "image" || !state.file) {
|
| 390 |
-
pane.
|
| 391 |
return;
|
| 392 |
}
|
| 393 |
|
|
@@ -434,7 +434,7 @@
|
|
| 434 |
label = T.preview_full;
|
| 435 |
}
|
| 436 |
statusEl.textContent = label;
|
| 437 |
-
pane.
|
| 438 |
}
|
| 439 |
|
| 440 |
function animateArc(fraction) {
|
|
|
|
| 118 |
<div id="frames-info" class="mt-4 text-sm text-gray-500"></div>
|
| 119 |
</div>
|
| 120 |
|
| 121 |
+
<div id="preview-pane" style="display: none;" class="flex-col items-center">
|
| 122 |
<div id="preview-wrap" class="relative inline-block">
|
| 123 |
<img id="result-image" class="max-h-64 max-w-full rounded-lg block bg-gray-50" alt="" />
|
| 124 |
<svg id="result-overlay" class="absolute top-0 left-0 w-full h-full pointer-events-none" preserveAspectRatio="none"></svg>
|
|
|
|
| 331 |
try { URL.revokeObjectURL(resultImg.src); } catch (_) {}
|
| 332 |
resultImg.removeAttribute("src");
|
| 333 |
}
|
| 334 |
+
$("preview-pane").style.display = "none";
|
| 335 |
}
|
| 336 |
|
| 337 |
function showError(msg) {
|
|
|
|
| 387 |
const statusEl = $("preview-status");
|
| 388 |
|
| 389 |
if (!state.result || state.result.media_type !== "image" || !state.file) {
|
| 390 |
+
pane.style.display = "none";
|
| 391 |
return;
|
| 392 |
}
|
| 393 |
|
|
|
|
| 434 |
label = T.preview_full;
|
| 435 |
}
|
| 436 |
statusEl.textContent = label;
|
| 437 |
+
pane.style.display = "flex";
|
| 438 |
}
|
| 439 |
|
| 440 |
function animateArc(fraction) {
|