evijit HF Staff commited on
Commit
535bf1f
·
verified ·
1 Parent(s): 72bf03d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
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
- /* Style the container for the slider group (component-11) as requested */
91
- #component-11 {
92
- background: none !important;
93
- border: none !important;
94
- box-shadow: none !important;
95
- padding: 5px !important;
96
  }
97
- /* Target the text block directly following the slider and remove its background */
98
- #param-slider-wrapper + div {
 
 
 
 
 
 
99
  background: none !important;
100
  border: none !important;
101
- padding: 4px 0 0 0 !important; /* Add a little space above the text */
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