Asish Karthikeya Gogineni commited on
Commit
a4cf33b
·
1 Parent(s): 5ceb659

fix: Add IDE-style panel scrolling

Browse files

- Each column now scrolls independently (like VS Code)
- Fixed height panels with overflow scroll
- Custom thin scrollbars matching dark theme
- Code blocks limited to 60vh with scroll

Files changed (1) hide show
  1. app.py +44 -0
app.py CHANGED
@@ -301,6 +301,50 @@ css = """
301
  footer {visibility: hidden;}
302
  header {visibility: hidden;}
303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
304
  </style>
305
  """
306
 
 
301
  footer {visibility: hidden;}
302
  header {visibility: hidden;}
303
 
304
+ /* -------------------------------------------------------------------------- */
305
+ /* IDE-STYLE PANEL LAYOUT */
306
+ /* -------------------------------------------------------------------------- */
307
+
308
+ /* Main content area - fixed height */
309
+ .main .block-container {
310
+ max-height: calc(100vh - 80px);
311
+ overflow: hidden;
312
+ padding-top: 1rem;
313
+ }
314
+
315
+ /* Make columns scrollable independently */
316
+ [data-testid="column"] {
317
+ max-height: calc(100vh - 120px);
318
+ overflow-y: auto;
319
+ overflow-x: hidden;
320
+ scrollbar-width: thin;
321
+ scrollbar-color: #475569 transparent;
322
+ }
323
+
324
+ /* Custom scrollbar for webkit browsers */
325
+ [data-testid="column"]::-webkit-scrollbar {
326
+ width: 6px;
327
+ }
328
+
329
+ [data-testid="column"]::-webkit-scrollbar-track {
330
+ background: transparent;
331
+ }
332
+
333
+ [data-testid="column"]::-webkit-scrollbar-thumb {
334
+ background: #475569;
335
+ border-radius: 3px;
336
+ }
337
+
338
+ [data-testid="column"]::-webkit-scrollbar-thumb:hover {
339
+ background: #64748b;
340
+ }
341
+
342
+ /* Code viewer specific - scrollable code block */
343
+ .stCode {
344
+ max-height: 60vh;
345
+ overflow-y: auto !important;
346
+ }
347
+
348
  </style>
349
  """
350