Fix the red line used to identify recent entries on the log pages (#2891)

This commit is contained in:
RD WebDesign
2023-12-21 16:01:05 -03:00
committed by GitHub
2 changed files with 7 additions and 6 deletions
+4 -4
View File
@@ -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
View File
@@ -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;
}