From 5a7659fc1e5ede0eed7783878fe641ff57267927 Mon Sep 17 00:00:00 2001 From: HesterG Date: Tue, 16 May 2023 11:45:47 +0800 Subject: [PATCH] updates --- web_src/css/base.css | 1 + web_src/js/components/RepoActionView.vue | 30 ++++++++++-------------- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/web_src/css/base.css b/web_src/css/base.css index eb12ffef7a6c2..4b9f1eef22498 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -71,6 +71,7 @@ /* console colors */ --color-console-fg: #ffffff; --color-console-bg: #171717; + --color-console-hover-bg: #ffffff16; /* named colors */ --color-red: #db2828; --color-orange: #f2711c; diff --git a/web_src/js/components/RepoActionView.vue b/web_src/js/components/RepoActionView.vue index 8db7030016309..b180b31ac3d16 100644 --- a/web_src/js/components/RepoActionView.vue +++ b/web_src/js/components/RepoActionView.vue @@ -38,8 +38,8 @@ {{ job.name }} - {{ job.duration }} + @@ -490,7 +490,7 @@ export function ansiLogToHTML(line) { padding-right: 3px; } -.job-group-section .job-brief-list .job-brief-item { +.job-brief-item { margin: 5px 0; padding: 10px; background: var(--color-info-bg); @@ -502,50 +502,46 @@ export function ansiLogToHTML(line) { align-items: center; } -.job-group-section .job-brief-list .job-brief-item:first-of-type { +.job-brief-item:first-of-type { margin-top: 0; } -.job-group-section .job-brief-list .job-brief-item .job-brief-rerun { +.job-brief-item .job-brief-rerun { cursor: pointer; transition: transform 0.2s; } -.job-group-section .job-brief-list .job-brief-item .job-brief-rerun:hover { +.job-brief-item .job-brief-rerun:hover { transform: scale(130%); } -.job-group-section .job-brief-list .job-brief-item .job-brief-link { +.job-brief-item .job-brief-link { display: flex; width: 100%; } -@media (max-width: 992px) { - .job-group-section .job-brief-list .job-brief-item .job-brief-link { - width: 80%; - } -} -.job-group-section .job-brief-list .job-brief-item .job-brief-link span { +.job-brief-item .job-brief-link span { display: flex; align-items: center; } -.job-group-section .job-brief-list .job-brief-item .job-brief-link .job-brief-name { +.job-brief-item .job-brief-link .job-brief-name { display: block; width: 70%; color: var(--color-text); } -.job-group-section .job-brief-list .job-brief-item .job-brief-link:hover { +.job-brief-item .job-brief-link:hover { text-decoration: none; } -.job-group-section .job-brief-list .job-brief-item .job-brief-info { +.job-brief-item .job-brief-info { display: flex; align-items: center; + width: 55px; } -.job-group-section .job-brief-list .job-brief-item:hover { +.job-brief-item:hover { background-color: var(--color-secondary); } @@ -654,7 +650,7 @@ export function ansiLogToHTML(line) { .job-step-section .job-step-logs .job-log-line:hover { color: var(--color-console-fg); - background-color: var(--color-black-light); + background-color: var(--color-console-hover-bg); } .job-step-section .job-step-logs .job-log-line .line-num {