Skip to content

Commit 345a25d

Browse files
GiteaBotHesterG
andauthored
Fix rerun icon on action view component (#25531) (#25536)
Backport #25531 by @HesterG Right now rerun icon on action view component will not be seen when duration text length is long, because the wrapper `job-brief-info` has a fixed width, and the svg is squeezed. The way to fix this in this PR is to change width to `fit-content` and exchange position of duration text and rerun svg. Before (rerun svg not shown on hover): <img width="1401" alt="Screen Shot 2023-06-27 at 12 53 41" src="https://github.com/go-gitea/gitea/assets/17645053/bb3f62ec-8c56-4dbc-96f1-718b50426d91"> After: <img width="1409" alt="Screen Shot 2023-06-27 at 12 50 59" src="https://github.com/go-gitea/gitea/assets/17645053/620aa02c-2326-408d-a763-453f48f42c40"> Co-authored-by: HesterG <[email protected]>
1 parent e8a7cd4 commit 345a25d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
<span class="job-brief-name gt-mx-3 gt-ellipsis">{{ job.name }}</span>
3939
</a>
4040
<span class="job-brief-info">
41-
<span class="step-summary-duration">{{ job.duration }}</span>
4241
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun gt-mx-3" @click="rerunJob(index)" v-if="job.canRerun && onHoverRerunIndex === job.id"/>
42+
<span class="step-summary-duration">{{ job.duration }}</span>
4343
</span>
4444
</div>
4545
</div>
@@ -634,6 +634,7 @@ export function ansiLogToHTML(line) {
634634
.job-brief-item .job-brief-link {
635635
display: flex;
636636
width: 100%;
637+
min-width: 0;
637638
}
638639
639640
.job-brief-item .job-brief-link span {
@@ -654,7 +655,6 @@ export function ansiLogToHTML(line) {
654655
.job-brief-item .job-brief-info {
655656
display: flex;
656657
align-items: center;
657-
width: 55px;
658658
}
659659
660660
/* ================ */

0 commit comments

Comments
 (0)