Commit
·
fdad3be
1
Parent(s):
bdeb1e5
feat: updated TTD UI (DRIAS & IPCC)
Browse files- front/tabs/tab_drias.py +7 -5
- front/tabs/tab_ipcc.py +8 -5
- style.css +2 -9
front/tabs/tab_drias.py
CHANGED
@@ -134,11 +134,13 @@ def create_drias_ui() -> DriasUIElements:
|
|
134 |
|
135 |
|
136 |
with gr.Accordion(label="Chart", visible=False) as chart_accordion:
|
137 |
-
with gr.
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
|
|
|
|
142 |
drias_display = gr.Plot(elem_id="vanna-plot")
|
143 |
|
144 |
with gr.Accordion(
|
|
|
134 |
|
135 |
|
136 |
with gr.Accordion(label="Chart", visible=False) as chart_accordion:
|
137 |
+
with gr.Row():
|
138 |
+
model_selection = gr.Dropdown(
|
139 |
+
label="Model", choices=DRIAS_MODELS, value="ALL", interactive=True
|
140 |
+
)
|
141 |
+
with gr.Accordion(label="Informations about the plot", open=False):
|
142 |
+
plot_information = gr.Markdown(value = "")
|
143 |
+
|
144 |
drias_display = gr.Plot(elem_id="vanna-plot")
|
145 |
|
146 |
with gr.Accordion(
|
front/tabs/tab_ipcc.py
CHANGED
@@ -146,12 +146,15 @@ def create_ipcc_ui() -> ipccUIElements:
|
|
146 |
)
|
147 |
|
148 |
with gr.Accordion(label="Chart", visible=False) as chart_accordion:
|
149 |
-
|
150 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
-
scenario_selection = gr.Dropdown(
|
153 |
-
label="Scenario", choices=IPCC_MODELS, value="ALL", interactive=True, visible=False
|
154 |
-
)
|
155 |
ipcc_display = gr.Plot(elem_id="vanna-plot")
|
156 |
|
157 |
with gr.Accordion(
|
|
|
146 |
)
|
147 |
|
148 |
with gr.Accordion(label="Chart", visible=False) as chart_accordion:
|
149 |
+
|
150 |
+
with gr.Row():
|
151 |
+
scenario_selection = gr.Dropdown(
|
152 |
+
label="Scenario", choices=IPCC_MODELS, value="ALL", interactive=True, visible=False
|
153 |
+
)
|
154 |
+
|
155 |
+
with gr.Accordion(label="Informations about the plot", open=False):
|
156 |
+
plot_information = gr.Markdown(value = "")
|
157 |
|
|
|
|
|
|
|
158 |
ipcc_display = gr.Plot(elem_id="vanna-plot")
|
159 |
|
160 |
with gr.Accordion(
|
style.css
CHANGED
@@ -683,17 +683,10 @@ div#tab-vanna{
|
|
683 |
font-size: 16px;
|
684 |
}
|
685 |
|
686 |
-
#table-names label:nth-child(odd) {
|
687 |
-
background-color: #f9f9f9;
|
688 |
-
}
|
689 |
-
|
690 |
-
#table-names label:nth-child(even) {
|
691 |
-
background-color: #e6f0ff;
|
692 |
-
}
|
693 |
|
694 |
#table-names label {
|
695 |
-
display: block;
|
696 |
-
width: 100%;
|
697 |
box-sizing: border-box;
|
698 |
padding: 8px 12px;
|
699 |
margin-bottom: 4px;
|
|
|
683 |
font-size: 16px;
|
684 |
}
|
685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
|
687 |
#table-names label {
|
688 |
+
display: block;
|
689 |
+
width: 100%;
|
690 |
box-sizing: border-box;
|
691 |
padding: 8px 12px;
|
692 |
margin-bottom: 4px;
|