Skip to content

Commit 8242c3c

Browse files
GiteaBotsilverwind
andauthored
fix double border and border-radius on empty action steps (#29845) (#29850)
Backport #29845 by @silverwind Before, double border-bottom and incorrect border-radius: <img width="914" alt="Screenshot 2024-03-16 at 14 46 31" src="https://github.com/go-gitea/gitea/assets/115237/6ea63c42-754c-420c-a0f5-c889a8507d9f"> After, both fixed: <img width="917" alt="Screenshot 2024-03-16 at 14 45 59" src="https://github.com/go-gitea/gitea/assets/115237/9d3f2dba-6b22-441d-8e99-5809d5f1f1c0"> Co-authored-by: silverwind <[email protected]>
1 parent 0cbbcf2 commit 8242c3c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web_src/js/components/RepoActionView.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export function initRepositoryActionView() {
446446
</div>
447447
</div>
448448
</div>
449-
<div class="job-step-container" ref="steps">
449+
<div class="job-step-container" ref="steps" v-if="currentJob.steps.length">
450450
<div class="job-step-section" v-for="(jobStep, i) in currentJob.steps" :key="i">
451451
<div class="job-step-summary" @click.stop="toggleStepLogs(i)" :class="currentJobStepsStates[i].expanded ? 'selected' : ''">
452452
<!-- If the job is done and the job step log is loaded for the first time, show the loading icon
@@ -672,11 +672,15 @@ export function initRepositoryActionView() {
672672
background-color: var(--color-console-bg);
673673
position: sticky;
674674
top: 0;
675-
border-radius: var(--border-radius) var(--border-radius) 0 0;
675+
border-radius: var(--border-radius);
676676
height: 60px;
677677
z-index: 1;
678678
}
679679
680+
.job-info-header:has(+ .job-step-container) {
681+
border-radius: var(--border-radius) var(--border-radius) 0 0;
682+
}
683+
680684
.job-info-header .job-info-header-title {
681685
color: var(--color-console-fg);
682686
font-size: 16px;

0 commit comments

Comments
 (0)