Skip to content

Commit 4904856

Browse files
committed
use v-if and change names
1 parent 5a7659f commit 4904856

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</a>
4040
<span class="job-brief-info">
4141
<span class="step-summary-duration">{{ job.duration }}</span>
42-
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun gt-mx-3" @click="rerunJob(index)" v-show="job.canRerun && onHoverRerunIndex === job.id"/>
42+
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun gt-mx-3" @click="rerunJob(index)" v-if="job.canRerun && onHoverRerunIndex === job.id"/>
4343
</span>
4444
</div>
4545
</div>
@@ -502,6 +502,15 @@ export function ansiLogToHTML(line) {
502502
align-items: center;
503503
}
504504
505+
.job-brief-item:hover {
506+
background-color: var(--color-secondary);
507+
}
508+
509+
.job-brief-item.selected {
510+
font-weight: var(--font-weight-bold);
511+
background-color: var(--color-secondary-dark-1);
512+
}
513+
505514
.job-brief-item:first-of-type {
506515
margin-top: 0;
507516
}
@@ -541,15 +550,6 @@ export function ansiLogToHTML(line) {
541550
width: 55px;
542551
}
543552
544-
.job-brief-item:hover {
545-
background-color: var(--color-secondary);
546-
}
547-
548-
.job-group-section .job-brief-list .job-brief-item.selected {
549-
font-weight: var(--font-weight-bold);
550-
background-color: var(--color-secondary-dark-1);
551-
}
552-
553553
/* ================ */
554554
/* action view right */
555555

0 commit comments

Comments
 (0)