TheoLvs commited on
Commit
2e9b317
β€’
1 Parent(s): f2aadef
Files changed (2) hide show
  1. app.py +2 -2
  2. style.css +6 -1
app.py CHANGED
@@ -446,7 +446,7 @@ with gr.Blocks(title="🌍 Climate Q&A", css="style.css", theme=theme) as demo:
446
  #---------------------------------------------------------------------------------------
447
 
448
 
449
- with gr.Tab("ℹ️ About ClimateQ&A"):
450
  with gr.Row():
451
  with gr.Column(scale=1):
452
  gr.Markdown(
@@ -536,7 +536,7 @@ with gr.Blocks(title="🌍 Climate Q&A", css="style.css", theme=theme) as demo:
536
  # openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
537
  # openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
538
 
539
- with gr.Tab("πŸ“š Sources"):
540
  gr.Markdown("""
541
  | Source | Report | URL | Number of pages | Release date |
542
  | --- | --- | --- | --- | --- |
 
446
  #---------------------------------------------------------------------------------------
447
 
448
 
449
+ with gr.Tab("ℹ️ About ClimateQ&A",elem_classes = "max-height"):
450
  with gr.Row():
451
  with gr.Column(scale=1):
452
  gr.Markdown(
 
536
  # openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
537
  # openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
538
 
539
+ with gr.Tab("πŸ“š Sources",elem_classes = "max-height"):
540
  gr.Markdown("""
541
  | Source | Report | URL | Number of pages | Release date |
542
  | --- | --- | --- | --- | --- |
style.css CHANGED
@@ -184,5 +184,10 @@ div#chatbot-row{
184
 
185
  div#chatbot{
186
  height:calc(100vh - 270px);
187
- max-height:calc(100vh - 270px);
 
 
 
 
 
188
  }
 
184
 
185
  div#chatbot{
186
  height:calc(100vh - 270px);
187
+ }
188
+
189
+
190
+ .max-height{
191
+ height:calc(100vh - 120px);
192
+ overflow-y: auto;
193
  }