Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the actions control button look like an actual button #24611

Merged
merged 9 commits into from
May 10, 2023
25 changes: 6 additions & 19 deletions web_src/js/components/RepoActionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<div class="action-title">
{{ run.title }}
</div>
<button :data-tooltip-content="locale.approve" class="action-control-button text green" @click="approveRun()" v-if="run.canApprove">
<SvgIcon name="octicon-play" :size="20"/>
<button class="ui basic small compact button primary" @click="approveRun()" v-if="run.canApprove">
<SvgIcon name="octicon-play" :size="20"/> {{ locale.approve }}
</button>
<button :data-tooltip-content="locale.cancel" class="action-control-button text red" @click="cancelRun()" v-else-if="run.canCancel">
<SvgIcon name="octicon-x-circle-fill" :size="20"/>
<button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
<SvgIcon name="octicon-x-circle-fill" :size="20"/> {{ locale.cancel }}
</button>
<button :data-tooltip-content="locale.rerun" class="action-control-button text green" @click="rerun()" v-else-if="run.canRerun">
<SvgIcon name="octicon-sync" :size="20"/>
<button class="ui basic small compact button secondary" @click="rerun()" v-else-if="run.canRerun">
<SvgIcon name="octicon-sync" :size="20"/> {{ locale.rerun }}
</button>
</div>
<div class="action-commit-summary">
Expand Down Expand Up @@ -381,19 +381,6 @@ export function ansiLogToHTML(line) {
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 {
font-size: 150%;
height: 20px;
Expand Down