浏览代码

[core] Improved jHueNotify margin and enforced max height

Enrico Berti 10 年之前
父节点
当前提交
326f832519

+ 3 - 1
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -1012,7 +1012,9 @@ div.box {
   width: 400px;
   text-align: left;
   z-index: 11000;
-  word-break: break-word;
+  word-break: break-all;
+  overflow-y: auto;
+  max-height: 140px;
 }
 
 .jHueNotify .close {

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/jquery.notify.js

@@ -46,7 +46,7 @@
 
   Plugin.prototype.show = function () {
     var _this = this;
-    var MARGIN = 10;
+    var MARGIN = 4;
 
     _this.options.message = $("<span>").text(_this.options.message).html(); // escape HTML messages