Kimty commited on
Commit
e10b362
·
1 Parent(s): 5d6a96a

style: enhance result table appearance with scrollable overflow

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -67,6 +67,7 @@ with gr.Blocks(
67
  css="""
68
  .main-header {text-align:center; margin-bottom:4px}
69
  .sub-header {text-align:center; color:#555; margin-top:0}
 
70
  """,
71
  ) as demo:
72
  gr.Markdown(
@@ -96,6 +97,7 @@ with gr.Blocks(
96
  headers=["CAS", "Tên hóa chất", "Yêu cầu pháp lý", "Cơ sở pháp lý"],
97
  datatype=["str", "str", "str", "str"],
98
  interactive=False, wrap=True,
 
99
  )
100
  text_detail = gr.Markdown()
101
 
@@ -120,6 +122,7 @@ with gr.Blocks(
120
  headers=["CAS", "Tên hóa chất", "Yêu cầu pháp lý", "Cơ sở pháp lý"],
121
  datatype=["str", "str", "str", "str"],
122
  interactive=False, wrap=True,
 
123
  )
124
  img_detail = gr.Markdown()
125
 
 
67
  css="""
68
  .main-header {text-align:center; margin-bottom:4px}
69
  .sub-header {text-align:center; color:#555; margin-top:0}
70
+ .result-table {height: 300px; overflow-y: auto}
71
  """,
72
  ) as demo:
73
  gr.Markdown(
 
97
  headers=["CAS", "Tên hóa chất", "Yêu cầu pháp lý", "Cơ sở pháp lý"],
98
  datatype=["str", "str", "str", "str"],
99
  interactive=False, wrap=True,
100
+ elem_classes=["result-table"],
101
  )
102
  text_detail = gr.Markdown()
103
 
 
122
  headers=["CAS", "Tên hóa chất", "Yêu cầu pháp lý", "Cơ sở pháp lý"],
123
  datatype=["str", "str", "str", "str"],
124
  interactive=False, wrap=True,
125
+ elem_classes=["result-table"],
126
  )
127
  img_detail = gr.Markdown()
128