mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-18 23:43:56 +09:00
Backport #38957 Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
@@ -280,7 +280,7 @@ func MockActionsRunsJobs(ctx *context.Context) {
|
||||
{jobID: "arch-test", name: "arch-test", status: actions_model.StatusSuccess, duration: "3s", needs: []string{"prep-jdk"}},
|
||||
{jobID: "integration-test", name: "integration-test", status: actions_model.StatusSuccess, duration: "4s", needs: []string{"prep-jdk"}},
|
||||
|
||||
{jobID: "build-image", name: "build-image", status: actions_model.StatusSuccess, duration: "3s", needs: []string{
|
||||
{jobID: "build-image", name: "build-image with a very long name that does not fit into the sidebar", status: actions_model.StatusSuccess, duration: "3s", needs: []string{
|
||||
"unit-test",
|
||||
"arch-test",
|
||||
"integration-test",
|
||||
|
||||
@@ -28,7 +28,5 @@ const iconClass = computed(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span class="flex-text-inline" :data-tooltip-content="localeStatus ?? status" v-if="status">
|
||||
<SvgIcon :name="icon.name" :class="iconClass" :size="size"/>
|
||||
</span>
|
||||
<SvgIcon v-if="status" :name="icon.name" :class="iconClass" :size="size" :data-tooltip-content="localeStatus ?? status"/>
|
||||
</template>
|
||||
|
||||
@@ -133,6 +133,7 @@ function attachLazyTooltip(el: HTMLElement): void {
|
||||
let ariaLabelValue = content;
|
||||
if (isHtml) ariaLabelValue = stripTags(content).replace(/\s+/g, ' ').trim();
|
||||
el.setAttribute('aria-label', ariaLabelValue);
|
||||
el.removeAttribute('aria-hidden');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user