Skip to content

Commit

Permalink
final fixes1
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Apr 23, 2024
1 parent 432a04e commit 78ef940
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions htdocs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,8 @@ td.table_label {
.upcoming.grid-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
gap: 12px;
padding: 10px;
gap: 9px;
padding: 8px;
direction: ltr;
}

Expand Down Expand Up @@ -944,6 +944,10 @@ td.table_label {
animation: 4s focus;
}

.upcoming.grid-item.disabled {
text-decoration: line-through;
}


body.dark .upcoming.schedule.grid-item {
background-color: #44444444
Expand Down
2 changes: 1 addition & 1 deletion htdocs/js/pages/Base.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Class.subclass(Page, "Page.Base", {

if (extraTooltip) {
if (title.plugin == 'dockerplug') icon = `<span title="${tooltip}" class="mdi mdi-docker"></span>`
if (title.plugin == 'shellplug') icon = `<span title="${tooltip}" class="mdi mdi-script"></span>`
// if (title.plugin == 'shellplug') icon = `<span title="${tooltip}" class="mdi mdi-script"></span>`
if (title.plugin == 'sshxplug' || title.plugin == 'sshplug') icon = `<span title="${tooltip}" class="mdi mdi-console"></span>`
if (title.plugin == 'urlplug') icon = `<span title="${tooltip}" class="mdi mdi-web"></span>`
}
Expand Down
4 changes: 2 additions & 2 deletions htdocs/js/pages/Home.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Class.subclass( Page.Base, "Page.Home", {
<div class="clear"></div>
</div>
<canvas id="d_home_completed_jobs" height="40px"></canvas>
<canvas id="d_home_completed_jobs" height="35px"></canvas>
<div style="height:10px;"></div>
<!-- Active jobs -->
Expand Down Expand Up @@ -403,7 +403,7 @@ Class.subclass( Page.Base, "Page.Home", {
if (stub.epoch - now <= 60) proximity = 'minute'

xhtml += `
<div id="${stub.id}" class="upcoming ${proximity} grid-item">
<div id="${stub.id}" class="upcoming ${proximity} grid-item ${tds.className || ''}">
<div class="flex-container">
<div style="text-overflow:ellipsis;overflow:hidden;white-space: nowrap;">${tds[0]}</div>
<div style="font-size:14px"><b>${nice_countdown}</b></div>
Expand Down
4 changes: 2 additions & 2 deletions htdocs/js/pages/Schedule.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1003,10 +1003,10 @@ Class.subclass(Page.Base, "Page.Schedule", {
//<div ><span style="font-size:0.8em" class="color_label green">✓</span></div>
let itemVisibility = eventView === 'grid' && (!item.active || args.collapse) ? 'none' : 'true'
// link item to it's group, avoid for disabled event on basic grid view
let itemClass = eventView === 'grid' && !item.active ? '' : tds.className
let itemClass = eventView === 'grid' && !item.active ? '' : (tds.className || '')

xhtml += `
<div id="${item.id}" style="display:${itemVisibility}" class="upcoming schedule grid-item ${itemClass}" onclick="">
<div id="${item.id}" style="display:${itemVisibility}" class="upcoming schedule grid-item ${itemClass }" onclick="">
<div class="flex-container schedule">
<div style="text-overflow:ellipsis;overflow:hidden;white-space: nowrap;">${tds[1]}</div>
Expand Down

0 comments on commit 78ef940

Please sign in to comment.