Spaces:
Sleeping
Sleeping
Asish Karthikeya Gogineni commited on
Commit ·
5059b8f
1
Parent(s): 911f32b
Fix: Enable horizontal scrolling for chat and code blocks
Browse files- components/style.py +4 -1
components/style.py
CHANGED
|
@@ -321,11 +321,12 @@ def apply_custom_css():
|
|
| 321 |
padding-top: 1rem;
|
| 322 |
}
|
| 323 |
|
|
|
|
| 324 |
/* Make columns scrollable independently */
|
| 325 |
[data-testid="column"] {
|
| 326 |
max-height: calc(100vh - 120px);
|
| 327 |
overflow-y: auto;
|
| 328 |
-
overflow-x:
|
| 329 |
scrollbar-width: thin;
|
| 330 |
scrollbar-color: #475569 transparent;
|
| 331 |
}
|
|
@@ -333,6 +334,7 @@ def apply_custom_css():
|
|
| 333 |
/* Custom scrollbar for webkit browsers */
|
| 334 |
[data-testid="column"]::-webkit-scrollbar {
|
| 335 |
width: 6px;
|
|
|
|
| 336 |
}
|
| 337 |
|
| 338 |
[data-testid="column"]::-webkit-scrollbar-track {
|
|
@@ -352,6 +354,7 @@ def apply_custom_css():
|
|
| 352 |
.stCode {
|
| 353 |
max-height: 60vh;
|
| 354 |
overflow-y: auto !important;
|
|
|
|
| 355 |
}
|
| 356 |
|
| 357 |
/* -------------------------------------------------------------------------- */
|
|
|
|
| 321 |
padding-top: 1rem;
|
| 322 |
}
|
| 323 |
|
| 324 |
+
/* Make columns scrollable independently */
|
| 325 |
/* Make columns scrollable independently */
|
| 326 |
[data-testid="column"] {
|
| 327 |
max-height: calc(100vh - 120px);
|
| 328 |
overflow-y: auto;
|
| 329 |
+
overflow-x: auto; /* Changed from hidden to auto to prevent cutoff */
|
| 330 |
scrollbar-width: thin;
|
| 331 |
scrollbar-color: #475569 transparent;
|
| 332 |
}
|
|
|
|
| 334 |
/* Custom scrollbar for webkit browsers */
|
| 335 |
[data-testid="column"]::-webkit-scrollbar {
|
| 336 |
width: 6px;
|
| 337 |
+
height: 6px; /* Added height for horizontal scrollbar */
|
| 338 |
}
|
| 339 |
|
| 340 |
[data-testid="column"]::-webkit-scrollbar-track {
|
|
|
|
| 354 |
.stCode {
|
| 355 |
max-height: 60vh;
|
| 356 |
overflow-y: auto !important;
|
| 357 |
+
overflow-x: auto !important; /* Ensure horizontal scroll works */
|
| 358 |
}
|
| 359 |
|
| 360 |
/* -------------------------------------------------------------------------- */
|