Spaces:
Sleeping
Sleeping
more tidying
Browse files- assets/10-theme.css +8 -0
- figure.py +1 -2
- main_layout.py +34 -11
assets/10-theme.css
CHANGED
|
@@ -307,4 +307,12 @@ input:focus-visible {
|
|
| 307 |
grid-column: 1 / -1;
|
| 308 |
grid-row: 2;
|
| 309 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 310 |
}
|
|
|
|
| 307 |
grid-column: 1 / -1;
|
| 308 |
grid-row: 2;
|
| 309 |
}
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
.polymer-section > h3,
|
| 313 |
+
.results-panel > h3 {
|
| 314 |
+
font-size: 22px !important;
|
| 315 |
+
line-height: 1.3 !important;
|
| 316 |
+
margin-top: 0 !important;
|
| 317 |
+
margin-bottom: 10px !important;
|
| 318 |
}
|
figure.py
CHANGED
|
@@ -273,9 +273,8 @@ def build_figure(dataframe: pd.DataFrame, mc_option="absolute") -> go.Figure:
|
|
| 273 |
b=20
|
| 274 |
),
|
| 275 |
|
| 276 |
-
autosize=
|
| 277 |
height=600,
|
| 278 |
-
width=800,
|
| 279 |
)
|
| 280 |
|
| 281 |
fig.update_xaxes(
|
|
|
|
| 273 |
b=20
|
| 274 |
),
|
| 275 |
|
| 276 |
+
autosize=True,
|
| 277 |
height=600,
|
|
|
|
| 278 |
)
|
| 279 |
|
| 280 |
fig.update_xaxes(
|
main_layout.py
CHANGED
|
@@ -104,6 +104,7 @@ def build_placeholder_figure():
|
|
| 104 |
|
| 105 |
def build_polymer_section():
|
| 106 |
return html.Div(
|
|
|
|
| 107 |
children=[
|
| 108 |
section_header("Polymer component"),
|
| 109 |
|
|
@@ -460,21 +461,42 @@ def build_monte_carlo_section():
|
|
| 460 |
# ============================================================
|
| 461 |
|
| 462 |
def build_results_panel(placeholder_fig):
|
| 463 |
-
return html.
|
|
|
|
| 464 |
className="results-panel",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 465 |
children=[
|
| 466 |
-
|
|
|
|
| 467 |
|
| 468 |
dcc.Loading(
|
| 469 |
id="mm0_loading",
|
| 470 |
-
type="
|
| 471 |
-
color="#
|
| 472 |
-
parent_style={
|
|
|
|
|
|
|
|
|
|
|
|
|
| 473 |
children=dcc.Graph(
|
| 474 |
id="mm0_chart",
|
| 475 |
figure=placeholder_fig,
|
|
|
|
| 476 |
config={"displayModeBar": False},
|
| 477 |
-
style={
|
|
|
|
|
|
|
|
|
|
| 478 |
),
|
| 479 |
),
|
| 480 |
|
|
@@ -488,13 +510,14 @@ def build_results_panel(placeholder_fig):
|
|
| 488 |
"and in vivo scenarios. ",
|
| 489 |
"For additional information, please "
|
| 490 |
"refer to the ",
|
| 491 |
-
dcc.Link(
|
| 492 |
-
"quick start guide",
|
| 493 |
-
href="/instructions",
|
| 494 |
-
),
|
| 495 |
".",
|
| 496 |
],
|
| 497 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 498 |
),
|
| 499 |
],
|
| 500 |
)
|
|
|
|
| 104 |
|
| 105 |
def build_polymer_section():
|
| 106 |
return html.Div(
|
| 107 |
+
className="polymer-section",
|
| 108 |
children=[
|
| 109 |
section_header("Polymer component"),
|
| 110 |
|
|
|
|
| 461 |
# ============================================================
|
| 462 |
|
| 463 |
def build_results_panel(placeholder_fig):
|
| 464 |
+
return html.Div(
|
| 465 |
+
|
| 466 |
className="results-panel",
|
| 467 |
+
|
| 468 |
+
style={
|
| 469 |
+
"flex": "1",
|
| 470 |
+
"minWidth": 0,
|
| 471 |
+
"boxSizing": "border-box",
|
| 472 |
+
"border": "1px solid #D5DADF",
|
| 473 |
+
"borderRadius": "4px",
|
| 474 |
+
"backgroundColor": "#FFFFFF",
|
| 475 |
+
"padding": "16px",
|
| 476 |
+
"paddingTop": "12px",
|
| 477 |
+
},
|
| 478 |
children=[
|
| 479 |
+
|
| 480 |
+
section_header("Results"),
|
| 481 |
|
| 482 |
dcc.Loading(
|
| 483 |
id="mm0_loading",
|
| 484 |
+
type="default",
|
| 485 |
+
color="#D60036",
|
| 486 |
+
parent_style={
|
| 487 |
+
"position": "relative",
|
| 488 |
+
"width": "100%",
|
| 489 |
+
"minWidth": 0,
|
| 490 |
+
},
|
| 491 |
children=dcc.Graph(
|
| 492 |
id="mm0_chart",
|
| 493 |
figure=placeholder_fig,
|
| 494 |
+
responsive=True,
|
| 495 |
config={"displayModeBar": False},
|
| 496 |
+
style={
|
| 497 |
+
"width": "100%",
|
| 498 |
+
"height": "600px",
|
| 499 |
+
},
|
| 500 |
),
|
| 501 |
),
|
| 502 |
|
|
|
|
| 510 |
"and in vivo scenarios. ",
|
| 511 |
"For additional information, please "
|
| 512 |
"refer to the ",
|
| 513 |
+
dcc.Link("quick start guide", href="/instructions"),
|
|
|
|
|
|
|
|
|
|
| 514 |
".",
|
| 515 |
],
|
| 516 |
+
style={
|
| 517 |
+
"margin": "1.25rem 0 0",
|
| 518 |
+
"lineHeight": "1.4",
|
| 519 |
+
"color": "#555",
|
| 520 |
+
},
|
| 521 |
),
|
| 522 |
],
|
| 523 |
)
|