Эх сурвалжийг харах

[search] Reduced a bit the slider size

Enrico Berti 11 жил өмнө
parent
commit
1973d6f

+ 1 - 1
desktop/core/static/css/bootstrap-slider.css

@@ -21,7 +21,7 @@
   position: relative;
   margin-top: 35px;
   margin-bottom: 35px;
-  margin-left: 10px;
+  margin-left: 25px;
 }
 
 .slider.slider-horizontal {

+ 2 - 2
desktop/core/static/js/bootstrap-slider.js

@@ -93,7 +93,7 @@
 
     this.picker
       .addClass("slider-horizontal")
-    this.picker.width(Math.min(this.element.parents(".card-widget").innerWidth() - 30, 250));
+    this.picker.width(Math.min(this.element.parents(".card-widget").innerWidth() - 60, 250));
     this.stylePos = "left";
     this.mousePos = "pageX";
     this.sizePos = "offsetWidth";
@@ -296,7 +296,7 @@
     layout: function () {
       var positionPercentages;
 
-      this.picker.width(Math.min(this.element.parents(".card-widget").innerWidth() - 30, 250));
+      this.picker.width(Math.min(this.element.parents(".card-widget").innerWidth() - 60, 250));
       this.size = this.picker[0][this.sizePos];
 
       if (this.reversed) {