Spaces:
Running
Running
ajust components size
Browse files
app.py
CHANGED
@@ -204,7 +204,7 @@ with gr.Blocks(title=f"{demo_name}", theme=theme, css_paths=os.getcwd()+ "/style
|
|
204 |
)
|
205 |
with gr.TabItem("Sources", id= 1):
|
206 |
gr.Markdown("### Sources")
|
207 |
-
sources_textbox = gr.HTML(show_label=False)
|
208 |
|
209 |
ask.submit(lambda : gr.update(selected=1), outputs= [tabs]).then(
|
210 |
fn=chat,
|
|
|
204 |
)
|
205 |
with gr.TabItem("Sources", id= 1):
|
206 |
gr.Markdown("### Sources")
|
207 |
+
sources_textbox = gr.HTML(show_label=False, elem_id="sources-textbox")
|
208 |
|
209 |
ask.submit(lambda : gr.update(selected=1), outputs= [tabs]).then(
|
210 |
fn=chat,
|
style.css
CHANGED
@@ -236,11 +236,11 @@ label.selected{
|
|
236 |
max-height: calc(100vh - 190px) !important;
|
237 |
overflow: hidden;
|
238 |
}
|
239 |
-
|
240 |
height:calc(100vh - 170px) !important;
|
241 |
max-height:calc(100vh - 170px) !important;
|
242 |
|
243 |
-
}
|
244 |
|
245 |
div#tab-examples{
|
246 |
height:calc(100vh - 190px) !important;
|
@@ -250,12 +250,12 @@ label.selected{
|
|
250 |
|
251 |
div#sources-textbox{
|
252 |
height:calc(100vh - 190px) !important;
|
253 |
-
overflow-y: scroll !important;
|
254 |
-
/* overflow-y: auto !important;
|
255 |
}
|
256 |
|
257 |
div#sources-figures{
|
258 |
-
height:calc(100vh - 300px) !important;
|
259 |
max-height: 90vh !important;
|
260 |
overflow-y: scroll !important;
|
261 |
}
|
|
|
236 |
max-height: calc(100vh - 190px) !important;
|
237 |
overflow: hidden;
|
238 |
}
|
239 |
+
div#chatbot{
|
240 |
height:calc(100vh - 170px) !important;
|
241 |
max-height:calc(100vh - 170px) !important;
|
242 |
|
243 |
+
}
|
244 |
|
245 |
div#tab-examples{
|
246 |
height:calc(100vh - 190px) !important;
|
|
|
250 |
|
251 |
div#sources-textbox{
|
252 |
height:calc(100vh - 190px) !important;
|
253 |
+
overflow-y: scroll !important; */
|
254 |
+
/* overflow-y: auto !important;
|
255 |
}
|
256 |
|
257 |
div#sources-figures{
|
258 |
+
/* height:calc(100vh - 300px) !important; */
|
259 |
max-height: 90vh !important;
|
260 |
overflow-y: scroll !important;
|
261 |
}
|