Spaces:
Running on Zero
Running on Zero
Fix responsive editor and output layout
Browse files
app.py
CHANGED
|
@@ -326,11 +326,15 @@ DEMO_CSS = """
|
|
| 326 |
height: 100% !important;
|
| 327 |
min-height: 500px !important;
|
| 328 |
}
|
| 329 |
-
#kinematic_tree_editor_html > .wrap.center.full
|
| 330 |
-
#kinematic_tree_editor_html .wrap.center.full
|
|
|
|
| 331 |
display: none !important;
|
| 332 |
opacity: 0 !important;
|
| 333 |
visibility: hidden !important;
|
|
|
|
|
|
|
|
|
|
| 334 |
}
|
| 335 |
#kinematic_tree_editor_html {
|
| 336 |
display: block !important;
|
|
@@ -554,6 +558,7 @@ DEMO_CSS = """
|
|
| 554 |
min-height: 0;
|
| 555 |
max-height: calc(var(--output-tile-size) + 34px);
|
| 556 |
align-items: flex-start !important;
|
|
|
|
| 557 |
}
|
| 558 |
.output-triplet-row > .form,
|
| 559 |
.output-triplet-row > div {
|
|
@@ -636,7 +641,6 @@ DEMO_CSS = """
|
|
| 636 |
.kin-panel {
|
| 637 |
display: flex !important;
|
| 638 |
flex-direction: column !important;
|
| 639 |
-
order: -1 !important;
|
| 640 |
overflow: visible !important;
|
| 641 |
opacity: 1 !important;
|
| 642 |
visibility: visible !important;
|
|
@@ -671,14 +675,18 @@ DEMO_CSS = """
|
|
| 671 |
overflow: visible !important;
|
| 672 |
}
|
| 673 |
.output-triplet-row {
|
| 674 |
-
--output-tile-size: min(360px,
|
| 675 |
flex: 0 0 auto !important;
|
| 676 |
max-height: none !important;
|
| 677 |
-
flex-
|
|
|
|
|
|
|
| 678 |
}
|
| 679 |
.output-triplet-row > .form,
|
| 680 |
.output-triplet-row > div {
|
| 681 |
-
flex:
|
|
|
|
|
|
|
| 682 |
}
|
| 683 |
.capped-output {
|
| 684 |
height: auto !important;
|
|
@@ -717,7 +725,7 @@ DEMO_CSS = """
|
|
| 717 |
}
|
| 718 |
.output-triplet-row > .form,
|
| 719 |
.output-triplet-row > div {
|
| 720 |
-
flex:
|
| 721 |
}
|
| 722 |
}
|
| 723 |
@media (max-width: 460px) {
|
|
|
|
| 326 |
height: 100% !important;
|
| 327 |
min-height: 500px !important;
|
| 328 |
}
|
| 329 |
+
#kinematic_tree_editor_html > .wrap.center.full,
|
| 330 |
+
#kinematic_tree_editor_html .wrap.center.full,
|
| 331 |
+
.kinematic-editor-host > .wrap.center.full {
|
| 332 |
display: none !important;
|
| 333 |
opacity: 0 !important;
|
| 334 |
visibility: hidden !important;
|
| 335 |
+
width: 0 !important;
|
| 336 |
+
height: 0 !important;
|
| 337 |
+
min-height: 0 !important;
|
| 338 |
}
|
| 339 |
#kinematic_tree_editor_html {
|
| 340 |
display: block !important;
|
|
|
|
| 558 |
min-height: 0;
|
| 559 |
max-height: calc(var(--output-tile-size) + 34px);
|
| 560 |
align-items: flex-start !important;
|
| 561 |
+
flex-wrap: nowrap !important;
|
| 562 |
}
|
| 563 |
.output-triplet-row > .form,
|
| 564 |
.output-triplet-row > div {
|
|
|
|
| 641 |
.kin-panel {
|
| 642 |
display: flex !important;
|
| 643 |
flex-direction: column !important;
|
|
|
|
| 644 |
overflow: visible !important;
|
| 645 |
opacity: 1 !important;
|
| 646 |
visibility: visible !important;
|
|
|
|
| 675 |
overflow: visible !important;
|
| 676 |
}
|
| 677 |
.output-triplet-row {
|
| 678 |
+
--output-tile-size: min(360px, 92vw);
|
| 679 |
flex: 0 0 auto !important;
|
| 680 |
max-height: none !important;
|
| 681 |
+
flex-direction: column !important;
|
| 682 |
+
flex-wrap: nowrap !important;
|
| 683 |
+
align-items: stretch !important;
|
| 684 |
}
|
| 685 |
.output-triplet-row > .form,
|
| 686 |
.output-triplet-row > div {
|
| 687 |
+
flex: 0 0 auto !important;
|
| 688 |
+
width: 100% !important;
|
| 689 |
+
max-width: 100% !important;
|
| 690 |
}
|
| 691 |
.capped-output {
|
| 692 |
height: auto !important;
|
|
|
|
| 725 |
}
|
| 726 |
.output-triplet-row > .form,
|
| 727 |
.output-triplet-row > div {
|
| 728 |
+
flex: 0 0 auto !important;
|
| 729 |
}
|
| 730 |
}
|
| 731 |
@media (max-width: 460px) {
|