diff --git a/htdocs/css/style.css b/htdocs/css/style.css index d58701d..f71c27f 100644 --- a/htdocs/css/style.css +++ b/htdocs/css/style.css @@ -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); @@ -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); } @@ -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; diff --git a/htdocs/js/pages/Home.class.js b/htdocs/js/pages/Home.class.js index 9a9165e..87b47be 100644 --- a/htdocs/js/pages/Home.class.js +++ b/htdocs/js/pages/Home.class.js @@ -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: { diff --git a/htdocs/js/pages/JobDetails.class.js b/htdocs/js/pages/JobDetails.class.js index 7f87720..350e44b 100644 --- a/htdocs/js/pages/JobDetails.class.js +++ b/htdocs/js/pages/JobDetails.class.js @@ -261,9 +261,9 @@ Class.subclass(Page.Base, "Page.JobDetails", {