Spaces:
Sleeping
Sleeping
$P@D$3RV£R commited on
Commit ·
c111fc3
1
Parent(s): 02de72b
Revert container heights to 55%/45%, keep image scaling with constrained proportions
Browse files- templates/tagger.html +2 -2
templates/tagger.html
CHANGED
|
@@ -169,7 +169,7 @@
|
|
| 169 |
<!-- Display current 3 images in preferred layout -->
|
| 170 |
{% if current_images|length >= 2 %}
|
| 171 |
<!-- Top row: sr_int_full.png and -tr_line.png side by side at 50% width each -->
|
| 172 |
-
<div style="height:
|
| 173 |
{% for img in current_images[:2] %}
|
| 174 |
{% set img_type = 'sr_int_full' if 'sr_int_full' in img else 'tr_line' %}
|
| 175 |
{% set color = '#ff8c00' if img_type == 'sr_int_full' else '#007bff' %}
|
|
@@ -185,7 +185,7 @@
|
|
| 185 |
|
| 186 |
<!-- Bottom row: -tr_int_full.png at 100% width -->
|
| 187 |
{% if current_images|length >= 3 %}
|
| 188 |
-
<div style="height:
|
| 189 |
{% set img = current_images[2] %}
|
| 190 |
<div class="canvas-container" style="width: 100%; height: 100%; position: relative;">
|
| 191 |
<div class="annotation-count" id="count_2">0 annotations</div>
|
|
|
|
| 169 |
<!-- Display current 3 images in preferred layout -->
|
| 170 |
{% if current_images|length >= 2 %}
|
| 171 |
<!-- Top row: sr_int_full.png and -tr_line.png side by side at 50% width each -->
|
| 172 |
+
<div style="height: 55%; display: flex;">
|
| 173 |
{% for img in current_images[:2] %}
|
| 174 |
{% set img_type = 'sr_int_full' if 'sr_int_full' in img else 'tr_line' %}
|
| 175 |
{% set color = '#ff8c00' if img_type == 'sr_int_full' else '#007bff' %}
|
|
|
|
| 185 |
|
| 186 |
<!-- Bottom row: -tr_int_full.png at 100% width -->
|
| 187 |
{% if current_images|length >= 3 %}
|
| 188 |
+
<div style="height: 45%;">
|
| 189 |
{% set img = current_images[2] %}
|
| 190 |
<div class="canvas-container" style="width: 100%; height: 100%; position: relative;">
|
| 191 |
<div class="annotation-count" id="count_2">0 annotations</div>
|