Merge pull request #345 from pi-hole/tweak/querylogactionbuttons

Prevent query log action buttons from line breaking
This commit is contained in:
Mcat12
2017-01-08 11:16:01 -05:00
committed by GitHub

View File

@@ -103,11 +103,11 @@ $(document).ready(function() {
"rowCallback": function( row, data, index ){
if (data[4] === "Pi-holed") {
$(row).css("color","red");
$("td:eq(5)", row).html( "<button style=\"color:green;\"><i class=\"fa fa-pencil-square-o\"></i> Whitelist</button>" );
$("td:eq(5)", row).html( "<button style=\"color:green; white-space: nowrap;\"><i class=\"fa fa-pencil-square-o\"></i> Whitelist</button>" );
}
else{
$(row).css("color","green");
$("td:eq(5)", row).html( "<button style=\"color:red;\"><i class=\"fa fa-ban\"></i> Blacklist</button>" );
$("td:eq(5)", row).html( "<button style=\"color:red; white-space: nowrap;\"><i class=\"fa fa-ban\"></i> Blacklist</button>" );
}
},