mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Fix the red line used to identify recent entries on the log pages (#2891)
This commit is contained in:
@@ -91,7 +91,7 @@ function getData() {
|
||||
// Check if we have a new PID -> FTL was restarted
|
||||
if (lastPID !== data.pid) {
|
||||
if (lastPID !== -1) {
|
||||
$("#output").append("<i class='text-danger'>*** FTL restarted ***</i><br>");
|
||||
$("#output").append("<div><i class='text-danger'>*** FTL restarted ***</i></div>");
|
||||
}
|
||||
|
||||
// Remember PID
|
||||
@@ -106,7 +106,7 @@ function getData() {
|
||||
// Set placeholder text if log file is empty and we have no new lines
|
||||
if (data.log.length === 0) {
|
||||
if (nextID === 0) {
|
||||
$("#output").html("<i>*** Log file is empty ***</i>");
|
||||
$("#output").html("<div><i>*** Log file is empty ***</i></div>");
|
||||
}
|
||||
|
||||
utils.setTimer(getData, REFRESH_INTERVAL.logs);
|
||||
@@ -128,11 +128,11 @@ function getData() {
|
||||
|
||||
// Add new line to output
|
||||
$("#output").append(
|
||||
'<span class="log-entry"><span class="text-muted">' +
|
||||
'<div class="log-entry"><span class="text-muted">' +
|
||||
moment(1000 * line.timestamp).format("YYYY-MM-DD HH:mm:ss.SSS") +
|
||||
"</span> " +
|
||||
line.message +
|
||||
"</span><br>"
|
||||
"</div>"
|
||||
);
|
||||
if (fadeIn) {
|
||||
//$(".left-line:last").fadeOut(2000);
|
||||
|
||||
+3
-2
@@ -1075,6 +1075,7 @@ table.dataTable tbody > tr > .selected {
|
||||
|
||||
#output {
|
||||
position: relative;
|
||||
display: grid;
|
||||
margin: 5px 0;
|
||||
min-height: 36px;
|
||||
padding: 4px 8px;
|
||||
@@ -1143,8 +1144,8 @@ table.dataTable tbody > tr > .selected {
|
||||
}
|
||||
|
||||
.hr-small {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
width: 100%;
|
||||
margin: 0 0 -1px;
|
||||
border-top: 1px solid #ff0000aa;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user