Spaces:
Sleeping
Sleeping
Explicily fix UI scrolling by constraining panel height and removing auto-scroll
Browse files- app/static/main.js +0 -1
- app/static/style.css +7 -3
app/static/main.js
CHANGED
|
@@ -157,7 +157,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 157 |
}
|
| 158 |
|
| 159 |
outputText.innerHTML = displayHtml;
|
| 160 |
-
resultsPanel.scrollIntoView({ behavior: 'smooth' });
|
| 161 |
}
|
| 162 |
|
| 163 |
clearBtn.addEventListener('click', () => {
|
|
|
|
| 157 |
}
|
| 158 |
|
| 159 |
outputText.innerHTML = displayHtml;
|
|
|
|
| 160 |
}
|
| 161 |
|
| 162 |
clearBtn.addEventListener('click', () => {
|
app/static/style.css
CHANGED
|
@@ -121,8 +121,10 @@ main {
|
|
| 121 |
flex: 1;
|
| 122 |
display: flex;
|
| 123 |
overflow: hidden;
|
| 124 |
-
padding:
|
| 125 |
-
gap:
|
|
|
|
|
|
|
| 126 |
}
|
| 127 |
|
| 128 |
.input-panel,
|
|
@@ -130,9 +132,11 @@ main {
|
|
| 130 |
flex: 1;
|
| 131 |
display: flex;
|
| 132 |
flex-direction: column;
|
| 133 |
-
gap:
|
| 134 |
min-width: 0;
|
| 135 |
min-height: 0;
|
|
|
|
|
|
|
| 136 |
}
|
| 137 |
|
| 138 |
.panel-header h2 {
|
|
|
|
| 121 |
flex: 1;
|
| 122 |
display: flex;
|
| 123 |
overflow: hidden;
|
| 124 |
+
padding: 1.5rem 2.5rem;
|
| 125 |
+
gap: 2.5rem;
|
| 126 |
+
height: 0;
|
| 127 |
+
/* Force children to respect parent flex height */
|
| 128 |
}
|
| 129 |
|
| 130 |
.input-panel,
|
|
|
|
| 132 |
flex: 1;
|
| 133 |
display: flex;
|
| 134 |
flex-direction: column;
|
| 135 |
+
gap: 1rem;
|
| 136 |
min-width: 0;
|
| 137 |
min-height: 0;
|
| 138 |
+
height: 100%;
|
| 139 |
+
overflow: hidden;
|
| 140 |
}
|
| 141 |
|
| 142 |
.panel-header h2 {
|