BoomQ commited on
Commit
2c6201e
·
verified ·
1 Parent(s): 1a33609

Move annotation guide to top

Browse files
Files changed (2) hide show
  1. app.py +3 -4
  2. styles.css +2 -2
app.py CHANGED
@@ -318,6 +318,9 @@ def build_app() -> gr.Blocks:
318
  min_width=220,
319
  )
320
 
 
 
 
321
  progress = gr.HTML(progress_html(None, None), elem_id="audit-progress")
322
  status = gr.Markdown("**Select an annotator to begin**", elem_id="save-status")
323
  case_title = gr.Markdown("### Select an annotator", elem_id="case-title")
@@ -331,10 +334,6 @@ def build_app() -> gr.Blocks:
331
  elem_id="statement-image",
332
  )
333
  formula = gr.HTML(formula_html(BUNDLE.cases[0]), elem_id="formula-display")
334
- with gr.Accordion("Annotation guide", open=True, elem_id="annotation-guide"):
335
- gr.Markdown(GUIDE_MARKDOWN)
336
-
337
-
338
  with gr.Row(equal_height=False, elem_id="workbench"):
339
  with gr.Column(scale=6, min_width=420):
340
  candidate = gr.Dataframe(
 
318
  min_width=220,
319
  )
320
 
321
+ with gr.Accordion("Annotation guide", open=True, elem_id="annotation-guide"):
322
+ gr.Markdown(GUIDE_MARKDOWN)
323
+
324
  progress = gr.HTML(progress_html(None, None), elem_id="audit-progress")
325
  status = gr.Markdown("**Select an annotator to begin**", elem_id="save-status")
326
  case_title = gr.Markdown("### Select an annotator", elem_id="case-title")
 
334
  elem_id="statement-image",
335
  )
336
  formula = gr.HTML(formula_html(BUNDLE.cases[0]), elem_id="formula-display")
 
 
 
 
337
  with gr.Row(equal_height=False, elem_id="workbench"):
338
  with gr.Column(scale=6, min_width=420):
339
  candidate = gr.Dataframe(
styles.css CHANGED
@@ -49,7 +49,7 @@
49
  }
50
 
51
  #annotation-guide [data-testid="accordion-content"] {
52
- max-height: 340px;
53
  overflow-y: auto;
54
  }
55
 
@@ -189,7 +189,7 @@ progress {
189
 
190
  @media (max-width: 760px) {
191
  #annotation-guide [data-testid="accordion-content"] {
192
- max-height: 260px;
193
  }
194
 
195
  #topbar,
 
49
  }
50
 
51
  #annotation-guide [data-testid="accordion-content"] {
52
+ max-height: 160px;
53
  overflow-y: auto;
54
  }
55
 
 
189
 
190
  @media (max-width: 760px) {
191
  #annotation-guide [data-testid="accordion-content"] {
192
+ max-height: 120px;
193
  }
194
 
195
  #topbar,