mirror of
https://github.com/pi-hole/web.git
synced 2026-05-08 09:39:05 +01:00
Prevent query log action buttons from line breaking
This commit is contained in:
@@ -103,11 +103,11 @@ $(document).ready(function() {
|
|||||||
"rowCallback": function( row, data, index ){
|
"rowCallback": function( row, data, index ){
|
||||||
if (data[4] === "Pi-holed") {
|
if (data[4] === "Pi-holed") {
|
||||||
$(row).css("color","red");
|
$(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{
|
else{
|
||||||
$(row).css("color","green");
|
$(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>" );
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user