Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,26 +79,26 @@ 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 |
-
/* Hide the min/max number labels within the RangeSlider component */
|
| 83 |
-
#param-slider-wrapper div[data-testid="range-slider"] > span {
|
| 84 |
-
display: none !important;
|
| 85 |
-
}
|
| 86 |
/* Hide the min/max input boxes and reset button above the RangeSlider */
|
| 87 |
#param-slider-wrapper .head {
|
| 88 |
display: none !important;
|
| 89 |
}
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
box-shadow: none !important;
|
| 95 |
-
padding: 5px !important;
|
| 96 |
}
|
| 97 |
-
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
background: none !important;
|
| 100 |
border: none !important;
|
| 101 |
-
|
| 102 |
}
|
| 103 |
"""
|
| 104 |
|
|
|
|
| 79 |
|
| 80 |
# --- FINAL FIX: Use CSS to target and fix the specific visual issues ---
|
| 81 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
/* Hide the min/max input boxes and reset button above the RangeSlider */
|
| 83 |
#param-slider-wrapper .head {
|
| 84 |
display: none !important;
|
| 85 |
}
|
| 86 |
+
|
| 87 |
+
/* Hide the 0 and 8 labels on the sides of the RangeSlider */
|
| 88 |
+
#param-slider-wrapper div[data-testid="range-slider"] > span {
|
| 89 |
+
display: none !important;
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
+
|
| 92 |
+
/*
|
| 93 |
+
THIS IS THE KEY FIX:
|
| 94 |
+
Target all individual component blocks *inside* our specific gr.Group
|
| 95 |
+
and remove their backgrounds and borders. This makes the group look like
|
| 96 |
+
a single, unified card.
|
| 97 |
+
*/
|
| 98 |
+
#component-11 .block {
|
| 99 |
background: none !important;
|
| 100 |
border: none !important;
|
| 101 |
+
box-shadow: none !important;
|
| 102 |
}
|
| 103 |
"""
|
| 104 |
|