|
12 | 12 | <div class="action-view-left">
|
13 | 13 | <div class="job-group-section">
|
14 | 14 | <div class="job-brief-list">
|
15 |
| - <a class="job-brief-item" v-for="(job, index) in run.jobs" :key="job.id" :href="run.link+'/jobs/'+index"> |
16 |
| - <SvgIcon name="octicon-check-circle-fill" class="green" v-if="job.status === 'success'"/> |
17 |
| - <SvgIcon name="octicon-skip" class="ui text grey" v-else-if="job.status === 'skipped'"/> |
18 |
| - <SvgIcon name="octicon-clock" class="ui text yellow" v-else-if="job.status === 'waiting'"/> |
19 |
| - <SvgIcon name="octicon-blocked" class="ui text yellow" v-else-if="job.status === 'blocked'"/> |
20 |
| - <SvgIcon name="octicon-meter" class="ui text yellow" class-name="job-status-rotate" v-else-if="job.status === 'running'"/> |
21 |
| - <SvgIcon name="octicon-x-circle-fill" class="red" v-else/> |
22 |
| - {{ job.name }} |
23 |
| - <!-- TODO: it will be a better idea to move "button" out from "a", and the ".prevent" will not be needed. But it needs some work with CSS --> |
24 |
| - <button class="job-brief-rerun" @click.prevent="rerunJob(index)" v-if="job.canRerun"> |
| 15 | + <div class="job-brief-item" v-for="(job, index) in run.jobs" :key="job.id"> |
| 16 | + <a class="job-brief-link" :href="run.link+'/jobs/'+index"> |
| 17 | + <SvgIcon name="octicon-check-circle-fill" class="green" v-if="job.status === 'success'"/> |
| 18 | + <SvgIcon name="octicon-skip" class="ui text grey" v-else-if="job.status === 'skipped'"/> |
| 19 | + <SvgIcon name="octicon-clock" class="ui text yellow" v-else-if="job.status === 'waiting'"/> |
| 20 | + <SvgIcon name="octicon-blocked" class="ui text yellow" v-else-if="job.status === 'blocked'"/> |
| 21 | + <SvgIcon name="octicon-meter" class="ui text yellow" class-name="job-status-rotate" v-else-if="job.status === 'running'"/> |
| 22 | + <SvgIcon name="octicon-x-circle-fill" class="red" v-else/> |
| 23 | + <span class="ui text">{{ job.name }}</span> |
| 24 | + </a> |
| 25 | + <button class="job-brief-rerun" @click="rerunJob(index)" v-if="job.canRerun"> |
25 | 26 | <SvgIcon name="octicon-sync" class="ui text black"/>
|
26 | 27 | </button>
|
27 |
| - </a> |
| 28 | + </div> |
28 | 29 | </div>
|
29 | 30 | </div>
|
30 | 31 | </div>
|
@@ -291,15 +292,15 @@ export function initRepositoryActionView() {
|
291 | 292 |
|
292 | 293 | .action-view-header {
|
293 | 294 | margin: 0 20px 20px 20px;
|
294 |
| - button.run_cancel { |
| 295 | + .run_cancel { |
295 | 296 | border: none;
|
296 | 297 | color: var(--color-red);
|
297 | 298 | background-color: transparent;
|
298 | 299 | outline: none;
|
299 | 300 | cursor: pointer;
|
300 | 301 | transition:transform 0.2s;
|
301 | 302 | };
|
302 |
| - button.run_cancel:hover{ |
| 303 | + .run_cancel:hover{ |
303 | 304 | transform:scale(130%);
|
304 | 305 | };
|
305 | 306 | }
|
@@ -327,26 +328,37 @@ export function initRepositoryActionView() {
|
327 | 328 | }
|
328 | 329 |
|
329 | 330 | .job-brief-list {
|
330 |
| - a.job-brief-item { |
331 |
| - display: block; |
| 331 | + .job-brief-item { |
332 | 332 | margin: 5px 0;
|
333 | 333 | padding: 10px;
|
334 | 334 | background: var(--color-info-bg);
|
335 | 335 | border-radius: 5px;
|
336 | 336 | text-decoration: none;
|
337 |
| - button.job-brief-rerun { |
| 337 | + display: flex; |
| 338 | + justify-items: center; |
| 339 | + flex-wrap: nowrap; |
| 340 | + .job-brief-rerun { |
338 | 341 | float: right;
|
339 | 342 | border: none;
|
340 | 343 | background-color: transparent;
|
341 | 344 | outline: none;
|
342 | 345 | cursor: pointer;
|
343 | 346 | transition:transform 0.2s;
|
344 | 347 | };
|
345 |
| - button.job-brief-rerun:hover{ |
| 348 | + .job-brief-rerun:hover{ |
346 | 349 | transform:scale(130%);
|
347 | 350 | };
|
| 351 | + .job-brief-link { |
| 352 | + flex-grow: 1; |
| 353 | + display: flex; |
| 354 | + span { |
| 355 | + margin-right: 8px; |
| 356 | + display: flex; |
| 357 | + align-items: center; |
| 358 | + } |
| 359 | + } |
348 | 360 | }
|
349 |
| - a.job-brief-item:hover { |
| 361 | + .job-brief-item:hover { |
350 | 362 | background-color: var(--color-secondary);
|
351 | 363 | }
|
352 | 364 | }
|
|
0 commit comments