Added word wraping for long records, fixes #2
This commit is contained in:
parent
6231e06b91
commit
be316f163f
|
@ -13,6 +13,11 @@
|
||||||
|
|
||||||
.cursor-pointer {cursor: pointer; }
|
.cursor-pointer {cursor: pointer; }
|
||||||
|
|
||||||
|
.wrap-all-words {
|
||||||
|
word-wrap: break-word;
|
||||||
|
max-width: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
.no-shadow {
|
.no-shadow {
|
||||||
box-shadow: none!important;
|
box-shadow: none!important;
|
||||||
border-color: #CCC!important;
|
border-color: #CCC!important;
|
||||||
|
|
|
@ -109,7 +109,7 @@ function recreateTable(data) {
|
||||||
.append('<td>' + item.id + '</td>')
|
.append('<td>' + item.id + '</td>')
|
||||||
.append('<td>' + item.name + '</td>')
|
.append('<td>' + item.name + '</td>')
|
||||||
.append('<td>' + item.type + '</td>')
|
.append('<td>' + item.type + '</td>')
|
||||||
.append('<td>' + item.content + '</td>')
|
.append('<td class="wrap-all-words">' + item.content + '</td>')
|
||||||
.append('<td>' + item.priority + '</td>')
|
.append('<td>' + item.priority + '</td>')
|
||||||
.append('<td>' + item.ttl + '</td>')
|
.append('<td>' + item.ttl + '</td>')
|
||||||
.append('<td><span class="glyphicon glyphicon-pencil cursor-pointer"></span></td>')
|
.append('<td><span class="glyphicon glyphicon-pencil cursor-pointer"></span></td>')
|
||||||
|
@ -345,7 +345,7 @@ function addRecord() {
|
||||||
.append('<td>' + dataRecv.newId + '</td>')
|
.append('<td>' + dataRecv.newId + '</td>')
|
||||||
.append('<td>' + data.name + '</td>')
|
.append('<td>' + data.name + '</td>')
|
||||||
.append('<td>' + data.type + '</td>')
|
.append('<td>' + data.type + '</td>')
|
||||||
.append('<td>' + data.content + '</td>')
|
.append('<td class="wrap-all-words">' + data.content + '</td>')
|
||||||
.append('<td>' + data.prio + '</td>')
|
.append('<td>' + data.prio + '</td>')
|
||||||
.append('<td>' + data.ttl + '</td>')
|
.append('<td>' + data.ttl + '</td>')
|
||||||
.append('<td><span class="glyphicon glyphicon-pencil cursor-pointer"></span></td>')
|
.append('<td><span class="glyphicon glyphicon-pencil cursor-pointer"></span></td>')
|
||||||
|
|
Loading…
Reference in a new issue