Spaces:
Sleeping
Sleeping
Commit
·
522ea0d
1
Parent(s):
2f6d8e4
adjust plot ht
Browse files
main.py
CHANGED
|
@@ -301,6 +301,7 @@ def get_chart_28168342():
|
|
| 301 |
)
|
| 302 |
)
|
| 303 |
|
|
|
|
| 304 |
# Serialize the Plotly figure to JSON
|
| 305 |
fig_json = fig.to_json()
|
| 306 |
return fig
|
|
@@ -308,7 +309,7 @@ def get_chart_28168342():
|
|
| 308 |
|
| 309 |
@app.get("/curated")
|
| 310 |
def curated():
|
| 311 |
-
return Div(plotly2fasthtml(get_chart_28168342()), id="inner-text")
|
| 312 |
|
| 313 |
|
| 314 |
@app.get("/common")
|
|
|
|
| 301 |
)
|
| 302 |
)
|
| 303 |
|
| 304 |
+
fig.update_layout(height=500)
|
| 305 |
# Serialize the Plotly figure to JSON
|
| 306 |
fig_json = fig.to_json()
|
| 307 |
return fig
|
|
|
|
| 309 |
|
| 310 |
@app.get("/curated")
|
| 311 |
def curated():
|
| 312 |
+
return Div(H2("Curated Sources"), plotly2fasthtml(get_chart_28168342()), id="inner-text")
|
| 313 |
|
| 314 |
|
| 315 |
@app.get("/common")
|
style.css
CHANGED
|
@@ -179,7 +179,7 @@ d-contents a:hover {
|
|
| 179 |
d-article {
|
| 180 |
/* Ensure d-article does not prevent sticky positioning */
|
| 181 |
overflow-x: visible;
|
| 182 |
-
grid-template-columns: [page-start] 1fr [page-start kicker-start] 1fr [middle-start] 1fr [text-start kicker-end]
|
| 183 |
}
|
| 184 |
|
| 185 |
d-contents {
|
|
|
|
| 179 |
d-article {
|
| 180 |
/* Ensure d-article does not prevent sticky positioning */
|
| 181 |
overflow-x: visible;
|
| 182 |
+
grid-template-columns: [page-start] 1fr [page-start kicker-start] 1fr [middle-start] 1fr [text-start kicker-end] 8fr [text-end gutter-start] 1fr [middle-end] 0fr [page-end gutter-end] 1fr [screen-end];
|
| 183 |
}
|
| 184 |
|
| 185 |
d-contents {
|