Fix #602 domain table with long records

This commit is contained in:
Khanh Ngo 2019-12-13 21:22:58 +07:00
parent 65d4acc6c5
commit d90a20f8da
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
3 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,6 @@
.length-break { .length-break {
word-break: break-all !important; word-break: break-all !important;
width: 70% !important;
} }
table td { table td {

View file

@ -138,7 +138,7 @@
"columnDefs": [ "columnDefs": [
{ {
type: 'natural', type: 'natural',
targets: [0, 5] targets: [0, 4]
}, },
{ {
// hidden column so that we can add new records on top // hidden column so that we can add new records on top
@ -148,7 +148,7 @@
}, },
{ {
className: "length-break", className: "length-break",
targets: [ 5 ] targets: [ 4, 5 ]
} }
], ],
"orderFixed": [[8, 'asc']] "orderFixed": [[8, 'asc']]

View file

@ -62,10 +62,10 @@
<td> <td>
{{ record.ttl }} {{ record.ttl }}
</td> </td>
<td class="length-break"> <td>
{{ record.data }} {{ record.data }}
</td> </td>
<td class="length-break"> <td>
{{ record.comment }} {{ record.comment }}
</td> </td>
<td width="6%"> <td width="6%">
@ -123,7 +123,7 @@
"columnDefs": [ "columnDefs": [
{ {
type: 'natural', type: 'natural',
targets: [0, 5] targets: [0, 4]
}, },
{ {
// hidden column so that we can add new records on top // hidden column so that we can add new records on top
@ -133,7 +133,7 @@
}, },
{ {
className: "length-break", className: "length-break",
targets: [ 5 ] targets: [ 4, 5 ]
} }
], ],
"orderFixed": [[8, 'asc']] "orderFixed": [[8, 'asc']]