Added CSS
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
}
|