Update app.py
Browse files
app.py
CHANGED
|
@@ -79,18 +79,17 @@ def create_treemap(treemap_data, count_by, title=None):
|
|
| 79 |
|
| 80 |
# --- FINAL FIX: Use CSS to target and fix the specific visual issues ---
|
| 81 |
custom_css = """
|
| 82 |
-
/* Target the specific gr.Group containing the slider and
|
| 83 |
.gradio-group:has(#param-slider-wrapper) {
|
| 84 |
border: none !important;
|
| 85 |
background: none !important;
|
| 86 |
box-shadow: none !important;
|
| 87 |
-
padding:
|
| 88 |
}
|
| 89 |
/* Target the min/max number labels within the RangeSlider component and hide them */
|
| 90 |
#param-slider-wrapper div[data-testid="range-slider"] > span {
|
| 91 |
display: none !important;
|
| 92 |
}
|
| 93 |
-
/* --- ADDED RULE --- */
|
| 94 |
/* Hide the min/max input boxes and reset button above the RangeSlider */
|
| 95 |
#param-slider-wrapper .head {
|
| 96 |
display: none !important;
|
|
|
|
| 79 |
|
| 80 |
# --- FINAL FIX: Use CSS to target and fix the specific visual issues ---
|
| 81 |
custom_css = """
|
| 82 |
+
/* Target the specific gr.Group containing the slider and add padding while removing the background/border */
|
| 83 |
.gradio-group:has(#param-slider-wrapper) {
|
| 84 |
border: none !important;
|
| 85 |
background: none !important;
|
| 86 |
box-shadow: none !important;
|
| 87 |
+
padding: 12px !important; /* MODIFIED: Set desired padding */
|
| 88 |
}
|
| 89 |
/* Target the min/max number labels within the RangeSlider component and hide them */
|
| 90 |
#param-slider-wrapper div[data-testid="range-slider"] > span {
|
| 91 |
display: none !important;
|
| 92 |
}
|
|
|
|
| 93 |
/* Hide the min/max input boxes and reset button above the RangeSlider */
|
| 94 |
#param-slider-wrapper .head {
|
| 95 |
display: none !important;
|