evijit HF Staff commited on
Commit
459d1e2
·
verified ·
1 Parent(s): 6e39c2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 remove its background/border */
83
  .gradio-group:has(#param-slider-wrapper) {
84
  border: none !important;
85
  background: none !important;
86
  box-shadow: none !important;
87
- padding: 0 !important; /* Also remove padding to align with other elements */
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;