Cards: Styling fixes.

This commit is contained in:
2015-06-20 10:55:06 +02:00
parent 8cee8412b4
commit e77cf71998
2 changed files with 10 additions and 4 deletions

View File

@@ -122,7 +122,6 @@ var Card = function (cfg, idCard, title, body, x, y) {
this.X = x;
this.Y = y;
// Create DOM
this.container = null;
this.divCard = document.createElement("div");
@@ -199,7 +198,8 @@ var Card = function (cfg, idCard, title, body, x, y) {
};
Card.prototype = {
FilterText: function (text) {
text = text.split(" ").join(" ");
text = text.split(" ").join("  ");
text = text.split("   ").join("   ");
text = text.split("\n").join("<br />");
return text;
},

View File

@@ -1,4 +1,8 @@
.divToolbox{
.divBoard{
position:relative;
height:100%;
}
.divToolbox{
position: absolute;
background-color: rgb(127,127,255);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
@@ -54,7 +58,9 @@
background-color: rgb(255,255,0);
box-shadow: 0 0 10px rgba(0,0,0,0.5);
min-width: 150px;
min-height: 200px;
max-width: 250px;
min-height: 150px;
max-height: 250px;
padding: 5px;
border-radius: 2px;
}