8000 fix(ui): change style of expand logs button (#3458) · ovh/cds@c9398dd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit c9398dd

Browse files
authored
fix(ui): change style of expand logs button (#3458)
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
1 parent 6beb13a commit c9398dd

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

ui/src/app/views/workflow/run/node/pipeline/step/step.log.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class WorkflowStepLogComponent implements OnInit, OnDestroy {
238238
this.loadingMore = true;
239239
setTimeout(() => {
240240
this.limitFrom = null;
241-
if (this.splittedLogs.length > 3000) {
241+
if (this.splittedLogs.length > 3500) {
242242
this.basicView = true;
243243
}
244244
this.splittedLogsToDisplay = this.splittedLogs;

ui/src/app/views/workflow/run/node/pipeline/step/step.log.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
<td class="number yellow right aligned pointing" (click)="generateLink(logLine.lineNumber)">{{logLine.lineNumber}}</td>
3131
<td [innerHTML]="logLine.value"></td>
3232
</tr>
33-
<tr *ngIf="logLine.lineNumber === limitFrom" valign="middle" align="center" class="fold-log pointing" (click)="showAllLogs()">
34-
<td colspan="2"><hr class="mb20"><a *ngIf="!loadingMore"><i class="resize vertical icon"></i>{{'workflow_logs_all' | translate}}</a><div class="ui active centered inline loader" *ngIf="loadingMore"></div><hr></td>
33+
<tr *ngIf="logLine.lineNumber === limitFrom" valign="middle" class="fold-log pointing" (click)="showAllLogs()">
34+
<td colspan="2"><hr class="mb25"><a *ngIf="!loadingMore"><i class="resize vertical icon"></i>{{'workflow_logs_all' | translate}}</a><div class="ui active centered inline loader" *ngIf="loadingMore"></div><hr></td>
3535
</tr>
3636
</ng-container>
3737
</tbody>
3838
</table></pre>
39-
<pre *ngIf="basicView && logs" class="ml10">{{logs.val}}</pre>
39+
<pre *ngIf="basicView && logs" class="ml50">{{logs.val}}</pre>
4040
<textarea class="fakeInput" name="fakeInput" #logsContent></textarea>
4141
<div class="ui active centered inline loader" *ngIf="loading"></div>
4242
</div>

ui/src/app/views/workflow/run/node/pipeline/step/step.log.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
$squareSize: 32px;
44
$yellowLogs: #FFFF91;
5-
.mb20 {
6-
margin-bottom: 20px;
5+
.mb25 {
6+
margin-bottom: 25px;
77
}
8-
.ml10 {
9-
margin-left: 10px;
8+
.ml50 {
9+
margin-left: 50px;
1010
}
1111

1212
.logHeader {
@@ -105,9 +105,10 @@ $yellowLogs: #FFFF91;
105105
padding-bottom: 1px;
106106
hr {
107107
width: 50%;
108+
margin-left: 0;
108109
border: 0;
109110
height: 1px;
110-
background-image: linear-gradient(to right, rgba(255, 255, 145, 0), rgba(255, 255, 145, 0.75), rgba(255, 255, 145, 0));
111+
background-image: linear-gradient(to right, rgba(255, 255, 145, 1), rgba(255, 255, 145, 0.75), rgba(255, 255, 145, 0));
111112
}
112113
&.number {
113114
width: 40px;

0 commit comments

Comments
 (0)
0