Skip to content

Commit 28a0e75

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

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

web_src/js/components/ActionRunStatus.vue

Lines changed: 5 additions & 5 deletions
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

Lines changed: 1 addition & 0 deletions
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)