Skip to content

Commit f260cc8

Browse files
committed
add jobs to demo dashboard
1 parent 670f2b4 commit f260cc8

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

webui/src/assets/nav.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,9 @@
1414

1515
header .nav-item .nav-link {
1616
padding-top: 7px;
17+
padding-bottom: 7px;
18+
}
19+
.navbar-collapse ul.dropdown-menu {
20+
padding-top: 0;
1721
padding-bottom: 0;
1822
}

webui/src/components/Header.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,5 +535,9 @@ header .container-fluid {
535535
display: flex !important;
536536
padding-top: 20px;
537537
}
538+
.navbar .collapse .tools > * {
539+
padding-right: 0.7rem;
540+
font-size: 16px;
541+
}
538542
}
539543
</style>

webui/src/components/dashboard/JobCard.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,18 @@ function getStatus(data: JobExecution) {
107107
</script>
108108

109109
<template>
110-
<div class="card">
110+
<section class="card" aria-labelledby="jobs-title">
111111
<div class="card-body">
112-
<div class="card-title text-center">Recent Jobs</div>
113-
<table class="table dataTable events" data-testid="requests">
112+
<h2 id="jobs-title" class="card-title text-center">Recent Jobs</h2>
113+
<table class="table dataTable events" aria-labelledby="jobs-title">
114114
<thead>
115115
<tr>
116116
<th scope="col" class="text-left" style="width: 15px;"></th>
117-
<th scope="col" class="text-left" style="width: 80px;">Status</th>
118-
<th scope="col" class="text-left" style="width: 50%">Name</th>
119-
<th scope="col" class="text-left">Schedule</th>
120-
<th scope="col" class="text-center" style="width:15%">Time</th>
121-
<th scope="col" class="text-center" style="width: 15%">Next Run</th>
117+
<th scope="col" class="text-left col-1">Status</th>
118+
<th scope="col" class="text-left col">Name</th>
119+
<th scope="col" class="text-center col-1">Schedule</th>
120+
<th scope="col" class="text-center col-2">Time</th>
121+
<th scope="col" class="text-center col-2">Next Run</th>
122122
</tr>
123123
</thead>
124124
<tbody>
@@ -131,7 +131,7 @@ function getStatus(data: JobExecution) {
131131
<span class="badge bg-success me-2" v-else>Success</span>
132132
</td>
133133
<td>{{ data!.tags.name }}</td>
134-
<td>{{ data!.schedule }}</td>
134+
<td class="text-center">{{ data!.schedule }}</td>
135135
<td class="text-center">{{ format(event.time) }}</td>
136136
<td class="text-center" :set="timer = timers[event.id]">
137137
<span v-if="timer" :title="format(data!.nextRun)">{{ formatTimer(timer) }}</span>
@@ -215,7 +215,7 @@ function getStatus(data: JobExecution) {
215215
</tbody>
216216
</table>
217217
</div>
218-
</div>
218+
</section>
219219
</template>
220220

221221
<style scoped>

0 commit comments

Comments
 (0)