Skip to content

Commit 00b18ab

Browse files
authored
Remove _actions.less (#22885)
Fix #22883. Revert commit 59beb2d.
1 parent ffa8994 commit 00b18ab

File tree

3 files changed

+53
-46
lines changed

3 files changed

+53
-46
lines changed

web_src/js/components/RepoActionView.vue

+53-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ export function initRepositoryActionView() {
280280
281281
<style scoped lang="less">
282282
283-
// some elements are not managed by vue, so we need to use _actions.less in addition.
284-
285283
.action-view-body {
286284
display: flex;
287285
height: calc(100vh - 266px); // fine tune this value to make the main view has full height
@@ -411,3 +409,56 @@ export function initRepositoryActionView() {
411409
}
412410
</style>
413411
412+
<style lang="less">
413+
// some elements are not managed by vue, so we need to use global style
414+
415+
// TODO: the parent element's full height doesn't work well now
416+
body > div.full.height {
417+
padding-bottom: 0;
418+
}
419+
420+
.job-status-rotate {
421+
animation: job-status-rotate-keyframes 1s linear infinite;
422+
}
423+
@keyframes job-status-rotate-keyframes {
424+
100% {
425+
transform: rotate(360deg);
426+
}
427+
}
428+
429+
.job-step-section {
430+
margin: 10px;
431+
.job-step-logs {
432+
font-family: monospace, monospace;
433+
.job-log-line {
434+
display: flex;
435+
.line-num {
436+
width: 48px;
437+
color: var(--color-grey-light);
438+
text-align: right;
439+
}
440+
.log-time {
441+
color: var(--color-grey-light);
442+
margin-left: 10px;
443+
white-space: nowrap;
444+
}
445+
.log-msg {
446+
flex: 1;
447+
word-break: break-all;
448+
white-space: break-spaces;
449+
margin-left: 10px;
450+
}
451+
}
452+
453+
// TODO: group support
454+
.job-log-group {
455+
}
456+
457+
.job-log-group-summary {
458+
}
459+
460+
.job-log-list {
461+
}
462+
}
463+
}
464+
</style>

web_src/less/_actions.less

-43
This file was deleted.

web_src/less/index.less

-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,5 @@
3838
@import "_review";
3939
@import "_package";
4040
@import "_runner";
41-
@import "_actions";
4241

4342
@import "./helpers.less";

0 commit comments

Comments
 (0)