Spaces:
Running
Running
Fix No Previous Results text color issue
Browse files- app.py +4 -4
- ui/custom.css +17 -3
app.py
CHANGED
@@ -634,10 +634,10 @@ with main_tab2:
|
|
634 |
# Display previous results if available
|
635 |
if not st.session_state.previous_results:
|
636 |
st.markdown("""
|
637 |
-
<div class="previous-results-container" style="text-align: center; padding: 40px 20px; background-color: #f8f9fa; border-radius: 8px;">
|
638 |
-
<div style="font-size: 48px; margin-bottom: 20px; color: #000000;">π</div>
|
639 |
-
<h3 style="color: #000000; margin-bottom: 10px; font-weight: 600;">No Previous Results</h3>
|
640 |
-
<p style="color: #000000; font-size: 16px;">Process a document to see your results history saved here.</p>
|
641 |
</div>
|
642 |
""", unsafe_allow_html=True)
|
643 |
else:
|
|
|
634 |
# Display previous results if available
|
635 |
if not st.session_state.previous_results:
|
636 |
st.markdown("""
|
637 |
+
<div class="previous-results-container no-previous-results" style="text-align: center; padding: 40px 20px; background-color: #f8f9fa; border-radius: 8px;">
|
638 |
+
<div style="font-size: 48px; margin-bottom: 20px; color: #000000 !important;">π</div>
|
639 |
+
<h3 style="color: #000000 !important; margin-bottom: 10px; font-weight: 600;">No Previous Results</h3>
|
640 |
+
<p style="color: #000000 !important; font-size: 16px;">Process a document to see your results history saved here.</p>
|
641 |
</div>
|
642 |
""", unsafe_allow_html=True)
|
643 |
else:
|
ui/custom.css
CHANGED
@@ -34,6 +34,15 @@
|
|
34 |
text-shadow: none !important;
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
/* Fix About tab styling */
|
38 |
[data-testid="stVerticalBlock"] .stMarkdown h3 {
|
39 |
color: #ffffff !important;
|
@@ -235,23 +244,28 @@ button.streamlit-expanderHeader:hover {
|
|
235 |
text-shadow: none !important;
|
236 |
}
|
237 |
|
238 |
-
/* No Results state styling */
|
239 |
.previous-results-container[style*="text-align: center"] {
|
240 |
background-color: #f8f9fa !important;
|
241 |
border-radius: 8px !important;
|
242 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
|
243 |
}
|
244 |
|
245 |
-
|
|
|
246 |
color: #000000 !important;
|
247 |
font-weight: 600 !important;
|
248 |
}
|
249 |
|
250 |
-
|
251 |
color: #000000 !important;
|
252 |
font-size: 16px !important;
|
253 |
}
|
254 |
|
|
|
|
|
|
|
|
|
255 |
/* Additional image fixes for all containers */
|
256 |
.document-content img,
|
257 |
.markdown-text-container img,
|
|
|
34 |
text-shadow: none !important;
|
35 |
}
|
36 |
|
37 |
+
/* Exception for the No Previous Results section - make text black */
|
38 |
+
.no-previous-results h3,
|
39 |
+
.no-previous-results p,
|
40 |
+
.no-previous-results div,
|
41 |
+
.no-previous-results * {
|
42 |
+
color: #000000 !important;
|
43 |
+
text-shadow: none !important;
|
44 |
+
}
|
45 |
+
|
46 |
/* Fix About tab styling */
|
47 |
[data-testid="stVerticalBlock"] .stMarkdown h3 {
|
48 |
color: #ffffff !important;
|
|
|
244 |
text-shadow: none !important;
|
245 |
}
|
246 |
|
247 |
+
/* No Results state styling - custom styling to override white text */
|
248 |
.previous-results-container[style*="text-align: center"] {
|
249 |
background-color: #f8f9fa !important;
|
250 |
border-radius: 8px !important;
|
251 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
|
252 |
}
|
253 |
|
254 |
+
/* Force the "No Previous Results" text to be black regardless of parent styling */
|
255 |
+
div[style*="background-color: #f8f9fa"] h3 {
|
256 |
color: #000000 !important;
|
257 |
font-weight: 600 !important;
|
258 |
}
|
259 |
|
260 |
+
div[style*="background-color: #f8f9fa"] p {
|
261 |
color: #000000 !important;
|
262 |
font-size: 16px !important;
|
263 |
}
|
264 |
|
265 |
+
div[style*="background-color: #f8f9fa"] * {
|
266 |
+
color: #000000 !important;
|
267 |
+
}
|
268 |
+
|
269 |
/* Additional image fixes for all containers */
|
270 |
.document-content img,
|
271 |
.markdown-text-container img,
|