Spaces:
Sleeping
Sleeping
Silvio Galesso commited on
Commit ·
e5afd16
1
Parent(s): 9be5666
appearance fixes
Browse files
app2.py
CHANGED
|
@@ -546,18 +546,19 @@ TRAJ_CANVAS_HTML_JS = f"""
|
|
| 546 |
<canvas id="traj-canvas" width="{TRAJ_CANVAS_SIZE_PX}" height="{TRAJ_CANVAS_SIZE_PX}"
|
| 547 |
style="display:block; border:1px solid #999; border-radius:8px; cursor:crosshair; background:#fafafa;">
|
| 548 |
</canvas>
|
| 549 |
-
<div style="position:absolute; top:8px; right:8px;
|
| 550 |
background:rgba(255,255,255,0.85); border-radius:6px; padding:6px 8px;
|
| 551 |
-
font-size:11px; color:#555; line-height:1.
|
| 552 |
<button id="traj-clear-btn"
|
| 553 |
-
style="
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
pointer-events:auto;">
|
| 557 |
Clear
|
| 558 |
</button>
|
| 559 |
-
<div
|
| 560 |
-
|
|
|
|
|
|
|
| 561 |
</div>
|
| 562 |
</div>
|
| 563 |
"""
|
|
|
|
| 546 |
<canvas id="traj-canvas" width="{TRAJ_CANVAS_SIZE_PX}" height="{TRAJ_CANVAS_SIZE_PX}"
|
| 547 |
style="display:block; border:1px solid #999; border-radius:8px; cursor:crosshair; background:#fafafa;">
|
| 548 |
</canvas>
|
| 549 |
+
<div style="position:absolute; top:8px; right:8px; display:flex; align-items:center; gap:8px;
|
| 550 |
background:rgba(255,255,255,0.85); border-radius:6px; padding:6px 8px;
|
| 551 |
+
font-size:11px; color:#555; line-height:1.4; pointer-events:none;">
|
| 552 |
<button id="traj-clear-btn"
|
| 553 |
+
style="font-size:13px; font-weight:600; padding:5px 14px; cursor:pointer;
|
| 554 |
+
background:#dc2626; color:#fff; border:none; border-radius:6px;
|
| 555 |
+
box-shadow:0 1px 3px rgba(0,0,0,0.35); pointer-events:auto; white-space:nowrap;">
|
|
|
|
| 556 |
Clear
|
| 557 |
</button>
|
| 558 |
+
<div style="text-align:left;">
|
| 559 |
+
<div><span style="color:#dc2626;">Red</span> = what you drew</div>
|
| 560 |
+
<div><span style="color:#4f46e5;">Blue</span> = smoothed model input</div>
|
| 561 |
+
</div>
|
| 562 |
</div>
|
| 563 |
</div>
|
| 564 |
"""
|