Spaces:
Running
Running
XQ commited on
Commit ·
9e50c31
1
Parent(s): d686bcf
Update UI
Browse files- src/ui/app.py +6 -3
src/ui/app.py
CHANGED
|
@@ -488,11 +488,14 @@ st.markdown(
|
|
| 488 |
}
|
| 489 |
|
| 490 |
/* ---------- Animated thinking dots on st.status label ---------- */
|
|
|
|
|
|
|
| 491 |
@keyframes thinking-dots {
|
| 492 |
-
|
| 493 |
-
|
| 494 |
}
|
| 495 |
-
details[data-testid="
|
|
|
|
| 496 |
content: "...";
|
| 497 |
display: inline-block;
|
| 498 |
width: 0;
|
|
|
|
| 488 |
}
|
| 489 |
|
| 490 |
/* ---------- Animated thinking dots on st.status label ---------- */
|
| 491 |
+
/* st.status renders as <details data-testid="stExpander"> in Streamlit 1.56;
|
| 492 |
+
we scope the animation to the running state by requiring the spinner icon. */
|
| 493 |
@keyframes thinking-dots {
|
| 494 |
+
0% { width: 0; }
|
| 495 |
+
100% { width: 1.5em; }
|
| 496 |
}
|
| 497 |
+
details[data-testid="stExpander"]:has([data-testid="stExpanderIconSpinner"])
|
| 498 |
+
summary [data-testid="stMarkdownContainer"] p::after {
|
| 499 |
content: "...";
|
| 500 |
display: inline-block;
|
| 501 |
width: 0;
|