Skip to content

Commit

Permalink
final fixes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Apr 24, 2024
1 parent 78ef940 commit da7b448
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
34 changes: 23 additions & 11 deletions htdocs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -867,17 +867,6 @@ td.table_label {
background-color: #cccccc26;
}

/* body.dark .stats.grid-item {
background-color: initial;
}
body.dark .stats.grid-item:hover {
color: #FFF;
background-color: initial;
}
.stats.grid-item:hover {
background-color: rgba(128,128,128, 0.1);
} */

@media (max-width: 1200px) {
.stats.grid-container {
grid-template-columns: repeat(5, 1fr);
Expand All @@ -901,10 +890,25 @@ td.table_label {
border-radius: 0px;
}

@media (max-width: 1200px) {
.job-details.grid-container {
grid-template-columns: repeat(3, auto);
border-bottom: 1px solid var( --border-color);
border-top: 0px solid var( --border-color);
}
}


.job-details.grid-container.running {
grid-template-columns: repeat(6, auto);
}

@media (max-width: 1200px) {
.job-details.grid-container.running {
grid-template-columns: repeat(3, auto);
}
}

body.dark .job-details.grid-container {
background-color: var(--background-color);
}
Expand All @@ -921,6 +925,14 @@ td.table_label {
/* border-radius: 6px; */
}

@media (max-width: 1200px) {
.job-details.grid-item {
justify-content:space-around;
border-bottom: 0px solid var( --border-color);
border-top: 1px solid var( --border-color);
}
}

body.dark .job-details.grid-item:hover div.info_value {
color: white;
text-shadow: none;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/pages/Home.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Class.subclass( Page.Base, "Page.Home", {
var col_width = Math.floor( ((size.width * 0.9) + 50) / 7 );

var cols = ['Event Name', 'Category', 'Plugin', 'Target', 'Scheduled Time', 'Countdown', 'Actions'];
var limit = Math.round((window.innerWidth)/350)*4 // try to fit 4 rows
var limit = Math.round((window.innerWidth)/350)*(window.innerHeight < 800 ? 3 : 4) // upcoming 3 or 4 rows

html += this.getPaginatedTable({
resp: {
Expand Down
6 changes: 3 additions & 3 deletions htdocs/js/pages/JobDetails.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ Class.subclass(Page.Base, "Page.JobDetails", {
<div class="job-details grid-item"><div class="info_label">EVENT:</div><div class="info_value">${eventTitle}</div></div>
<div class="job-details grid-item"><div class="info_label">ARG:</div><div class="info_value">${encode_entities(job.arg || '(no argument)')}</div></div>
<div class="job-details grid-item"><div class="info_label">ARG:</div><div class="info_value">${encode_entities(job.arg || '(None)')}</div></div>
<div class="job-details grid-item"><div class="info_label">PLUGIN:</div><div class="info_value">${jobPlugin}</div></div>
<div class="job-details grid-item"><div class="info_label">MEMO:</div><div class="info_value">${job.memo || '(none)'}</div></div>
<div class="job-details grid-item"><div class="info_label">MEMO:</div><div class="info_value">${job.memo || '(None)'}</div></div>
<div class="job-details grid-item"><div class="info_label">HOST:</div><div class="info_value">${this.getNiceGroup(null, job.hostname, col_width)}</div></div>
<div class="job-details grid-item"><div class="info_label">END:</div><div class="info_value">${get_nice_date_time(job.time_end, false, true)}</div></div>
<div class="job-details grid-item"><div class="info_value">${jumpToHist }</div></div>
Expand Down Expand Up @@ -821,7 +821,7 @@ Class.subclass(Page.Base, "Page.JobDetails", {
<div class="job-details grid-item"><div class="info_label">START:</div><div class="info_value">${get_nice_date_time(job.time_start, false, true) }</div></div>
<div class="job-details grid-item"><div class="info_label">EVENT:</div><div class="info_value">${eventTitle}</div></div>
<div class="job-details grid-item"><div class="info_label">ARG:</div><div class="info_value">${encode_entities(job.arg || '(no argument)')}</div></div>
<div class="job-details grid-item"><div class="info_label">ARG:</div><div class="info_value">${encode_entities(job.arg || '(None)')}</div></div>
<div class="job-details grid-item"><div class="info_label">PLUGIN:</div><div class="info_value">${this.getNicePlugin(plugin, col_width)}</div></div>
<div class="job-details grid-item"><div class="info_label">HOST:</div><div class="info_value">${this.getNiceGroup(null, job.hostname, col_width)}</div></div>
<div class="job-details grid-item"><div class="info_label">ELAPSED TIME:</div><div id="d_live_elapsed" class="info_value">${get_text_from_seconds(elapsed, false, false)}</div></div>
Expand Down

0 comments on commit da7b448

Please sign in to comment.