From 345a25d016c3ed839b90de92f2b5dbc49643bb28 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 27 Jun 2023 12:28:14 -0400 Subject: [PATCH] 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): Screen Shot 2023-06-27 at 12 53 41 After: Screen Shot 2023-06-27 at 12 50 59 Co-authored-by: HesterG --- web_src/js/components/RepoActionView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index ebc78b049b..75be2c9678 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -38,8 +38,8 @@ {{ job.name }} - {{ job.duration }} + {{ job.duration }} @@ -634,6 +634,7 @@ export function ansiLogToHTML(line) { .job-brief-item .job-brief-link { display: flex; width: 100%; + min-width: 0; } .job-brief-item .job-brief-link span { @@ -654,7 +655,6 @@ export function ansiLogToHTML(line) { .job-brief-item .job-brief-info { display: flex; align-items: center; - width: 55px; } /* ================ */