Skip to content

Commit cbdc527

Browse files
committed
fix wrong type, fix wrong class name
1 parent 464006c commit cbdc527

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

templates/repo/actions/status.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55
{{- $size := Iif .size .size 16 -}}
66
{{- $className := Iif .className .className "" -}}
7-
<span class="tw-flex tw-items-center" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
7+
<span data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
88
{{if eq .status "success"}}
99
{{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
1010
{{else if eq .status "skipped"}}

web_src/js/components/ActionRunStatus.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66
import {SvgIcon} from '../svg.ts';
77

88
withDefaults(defineProps<{
9-
status: '',
10-
size?: number,
11-
className?: string,
9+
status: 'success' | 'skipped' | 'waiting' | 'blocked' | 'running' | 'failure' | 'cancelled' | 'unknown',
10+
size: number,
11+
className: string,
1212
localeStatus?: string,
1313
}>(), {
1414
size: 16,
15-
className: undefined,
15+
className: '',
1616
localeStatus: undefined,
1717
});
1818
</script>
1919

2020
<template>
21-
<span class="tw-flex tw-items-center" :data-tooltip-content="localeStatus" v-if="status">
21+
<span :data-tooltip-content="localeStatus ?? status" v-if="status">
2222
<SvgIcon name="octicon-check-circle-fill" class="text green" :size="size" :class-name="className" v-if="status === 'success'"/>
2323
<SvgIcon name="octicon-skip" class="text grey" :size="size" :class-name="className" v-else-if="status === 'skipped'"/>
2424
<SvgIcon name="octicon-stop" class="text yellow" :size="size" :class-name="className" v-else-if="status === 'cancelled'"/>

web_src/js/components/RepoActionView.vue

+1
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ export function initRepositoryActionView() {
551551
552552
.action-info-summary-title {
553553
display: flex;
554+
align-items: center;
554555
}
555556
556557
.action-info-summary-title-text {

0 commit comments

Comments
 (0)