DanielRegaladoCardoso commited on
Commit
20f5c06
·
verified ·
1 Parent(s): 984d23c

Wider left column (480-580px) + capped schema height with scroll

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -105,8 +105,8 @@ gradio-app > .main, gradio-app .gradio-container {
105
  /* Two-column rectangular layout */
106
  .split-layout {
107
  display: grid;
108
- grid-template-columns: minmax(360px, 440px) 1fr;
109
- gap: 32px;
110
  align-items: stretch;
111
  min-height: 720px;
112
  }
@@ -642,13 +642,21 @@ details > *:not(summary) { padding: 0 14px 14px; }
642
  line-height: 1;
643
  }
644
 
645
- /* Schema preview after upload */
 
646
  .schema-preview {
647
  margin: 14px 0;
648
  padding: 14px 16px;
649
  background: var(--surface-raised);
650
  border: 1px solid var(--ink-faint);
651
  border-radius: var(--radius-sm);
 
 
 
 
 
 
 
652
  }
653
  .schema-preview-header {
654
  font-size: 12px;
 
105
  /* Two-column rectangular layout */
106
  .split-layout {
107
  display: grid;
108
+ grid-template-columns: minmax(480px, 580px) 1fr;
109
+ gap: 36px;
110
  align-items: stretch;
111
  min-height: 720px;
112
  }
 
642
  line-height: 1;
643
  }
644
 
645
+ /* Schema preview after upload — capped height so it doesn't push
646
+ the question off screen on wide schemas */
647
  .schema-preview {
648
  margin: 14px 0;
649
  padding: 14px 16px;
650
  background: var(--surface-raised);
651
  border: 1px solid var(--ink-faint);
652
  border-radius: var(--radius-sm);
653
+ max-height: 220px;
654
+ overflow-y: auto;
655
+ }
656
+ .schema-preview::-webkit-scrollbar { width: 6px; }
657
+ .schema-preview::-webkit-scrollbar-thumb {
658
+ background: var(--ink-faint);
659
+ border-radius: 3px;
660
  }
661
  .schema-preview-header {
662
  font-size: 12px;