浏览代码

[search] Reduced a bit the slider size

Enrico Berti 11 年之前
父节点
当前提交
1973d6f
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      desktop/core/static/css/bootstrap-slider.css
  2. 2 2
      desktop/core/static/js/bootstrap-slider.js

+ 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) {