Skip to content

Commit

Permalink
Fix the red line used to identify recent entries on the log pages (#2891
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rdwebdesign authored Dec 21, 2023
2 parents 8495f2f + b281b67 commit 8b3240e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions scripts/pi-hole/js/taillog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions style/pi-hole.css
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ table.dataTable tbody > tr > .selected {

#output {
position: relative;
display: grid;
margin: 5px 0;
min-height: 36px;
padding: 4px 8px;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 8b3240e

Please sign in to comment.