XQ commited on
Commit
bb91c88
·
1 Parent(s): 82024c3

Update UI

Browse files
Files changed (1) hide show
  1. src/ui/app.py +18 -2
src/ui/app.py CHANGED
@@ -82,7 +82,7 @@ TEXTS: dict[str, dict[str, str]] = {
82
  "search_button": "Søg",
83
  "example_button": "Tilfældigt eksempel",
84
  "spinner": "Søger i dokumenterne ...",
85
- "status_label": "Behandler forespørgsel ...",
86
  "status_done": "Færdig",
87
  "status_error": "Noget gik galt",
88
  "confidence_label": "Konfidensgrad",
@@ -165,7 +165,7 @@ TEXTS: dict[str, dict[str, str]] = {
165
  "search_button": "Search",
166
  "example_button": "Random question",
167
  "spinner": "Searching documents ...",
168
- "status_label": "Processing query ...",
169
  "status_done": "Done",
170
  "status_error": "Something went wrong",
171
  "confidence_label": "Confidence",
@@ -487,6 +487,22 @@ st.markdown(
487
  font-size: 0.92rem;
488
  }
489
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  /* ---------- Expander ---------- */
491
  .streamlit-expanderHeader {
492
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
 
82
  "search_button": "Søg",
83
  "example_button": "Tilfældigt eksempel",
84
  "spinner": "Søger i dokumenterne ...",
85
+ "status_label": "Tænker",
86
  "status_done": "Færdig",
87
  "status_error": "Noget gik galt",
88
  "confidence_label": "Konfidensgrad",
 
165
  "search_button": "Search",
166
  "example_button": "Random question",
167
  "spinner": "Searching documents ...",
168
+ "status_label": "Thinking",
169
  "status_done": "Done",
170
  "status_error": "Something went wrong",
171
  "confidence_label": "Confidence",
 
487
  font-size: 0.92rem;
488
  }
489
 
490
+ /* ---------- Animated thinking dots on st.status label ---------- */
491
+ @keyframes thinking-dots {
492
+ from { width: 0; }
493
+ to { width: 1.2em; }
494
+ }
495
+ details[data-testid="stStatus"] > summary div[data-testid="stMarkdownContainer"] p::after {
496
+ content: "...";
497
+ display: inline-block;
498
+ width: 0;
499
+ overflow: hidden;
500
+ vertical-align: bottom;
501
+ white-space: nowrap;
502
+ margin-left: 0.15em;
503
+ animation: thinking-dots 1.2s steps(4, end) infinite;
504
+ }
505
+
506
  /* ---------- Expander ---------- */
507
  .streamlit-expanderHeader {
508
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;