Skip to content

Commit ae9ac50

Browse files
yardenshohamGiteaBotsilverwindwxiaoguang
authored

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

web_src/js/components/RepoActionView.vue

+10-20
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template>
22
<div class="action-view-container">
33
<div class="action-view-header">
4-
<div class="action-info-summary gt-ac">
4+
<div class="action-info-summary">
55
<ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="20"/>
66
<div class="action-title">
77
{{ run.title }}
88
</div>
9-
<button :data-tooltip-content="locale.approve" class="action-control-button text green" @click="approveRun()" v-if="run.canApprove">
10-
<SvgIcon name="octicon-play" :size="20"/>
9+
<button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
10+
<SvgIcon class="gt-mr-2" name="octicon-play" :size="20"/> {{ locale.approve }}
1111
</button>
12-
<button :data-tooltip-content="locale.cancel" class="action-control-button text red" @click="cancelRun()" v-else-if="run.canCancel">
13-
<SvgIcon name="octicon-x-circle-fill" :size="20"/>
12+
<button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
13+
<SvgIcon class="gt-mr-2" name="octicon-x-circle-fill" :size="20"/> {{ locale.cancel }}
1414
</button>
15-
<button :data-tooltip-content="locale.rerun" class="action-control-button text green" @click="rerun()" v-else-if="run.canRerun">
16-
<SvgIcon name="octicon-sync" :size="20"/>
15+
<button class="ui basic small compact button secondary" @click="rerun()" v-else-if="run.canRerun">
16+
<SvgIcon class="gt-mr-2" name="octicon-sync" :size="20"/> {{ locale.rerun }}
1717
</button>
1818
</div>
1919
<div class="action-commit-summary">
@@ -391,27 +391,17 @@ export function ansiLogToHTML(line) {
391391
margin: 0 20px 20px 20px;
392392
}
393393
394-
.action-view-header .action-control-button {
395-
border: none;
396-
background-color: transparent;
397-
outline: none;
398-
cursor: pointer;
399-
transition: transform 0.2s;
400-
display: flex;
401-
}
402-
403-
.action-view-header .action-control-button:hover {
404-
transform: scale(130%);
405-
}
406-
407394
.action-info-summary {
408395
font-size: 150%;
409396
height: 20px;
410397
display: flex;
398+
align-items: center;
399+
margin-top: 1rem;
411400
}
412401
413402
.action-info-summary .action-title {
414403
padding: 0 5px;
404+
flex: 1;
415405
}
416406
417407
.action-commit-summary {

0 commit comments

Comments
 (0)