Yarden Shoham 2023-05-10 11:09:23 +03:00 committed by GitHub
parent de7dcc7cd9
commit ae9ac50072
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,19 @@
<template> <template>
<div class="action-view-container"> <div class="action-view-container">
<div class="action-view-header"> <div class="action-view-header">
<div class="action-info-summary gt-ac"> <div class="action-info-summary">
<ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="20"/> <ActionRunStatus :locale-status="locale.status[run.status]" :status="run.status" :size="20"/>
<div class="action-title"> <div class="action-title">
{{ run.title }} {{ run.title }}
</div> </div>
<button :data-tooltip-content="locale.approve" class="action-control-button text green" @click="approveRun()" v-if="run.canApprove"> <button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
<SvgIcon name="octicon-play" :size="20"/> <SvgIcon class="gt-mr-2" name="octicon-play" :size="20"/> {{ locale.approve }}
</button> </button>
<button :data-tooltip-content="locale.cancel" class="action-control-button text red" @click="cancelRun()" v-else-if="run.canCancel"> <button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
<SvgIcon name="octicon-x-circle-fill" :size="20"/> <SvgIcon class="gt-mr-2" name="octicon-x-circle-fill" :size="20"/> {{ locale.cancel }}
</button> </button>
<button :data-tooltip-content="locale.rerun" class="action-control-button text green" @click="rerun()" v-else-if="run.canRerun"> <button class="ui basic small compact button secondary" @click="rerun()" v-else-if="run.canRerun">
<SvgIcon name="octicon-sync" :size="20"/> <SvgIcon class="gt-mr-2" name="octicon-sync" :size="20"/> {{ locale.rerun }}
</button> </button>
</div> </div>
<div class="action-commit-summary"> <div class="action-commit-summary">
@ -391,27 +391,17 @@ export function ansiLogToHTML(line) {
margin: 0 20px 20px 20px; margin: 0 20px 20px 20px;
} }
.action-view-header .action-control-button {
border: none;
background-color: transparent;
outline: none;
cursor: pointer;
transition: transform 0.2s;
display: flex;
}
.action-view-header .action-control-button:hover {
transform: scale(130%);
}
.action-info-summary { .action-info-summary {
font-size: 150%; font-size: 150%;
height: 20px; height: 20px;
display: flex; display: flex;
align-items: center;
margin-top: 1rem;
} }
.action-info-summary .action-title { .action-info-summary .action-title {
padding: 0 5px; padding: 0 5px;
flex: 1;
} }
.action-commit-summary { .action-commit-summary {