Skip to content

Commit

Permalink
Adjusted styles for logs stream (argoproj#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
wokeGit authored and alexmt committed Jan 2, 2018
1 parent a8a9603 commit 849e916
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import { WorkflowsService } from '../../services';
})
export class WorkflowStepDetailsBoxComponent {

constructor(private workflowsService: WorkflowsService) {}
constructor(private workflowsService: WorkflowsService) {
}

@Input()
public tab: string;
Expand All @@ -26,12 +27,12 @@ export class WorkflowStepDetailsBoxComponent {

public getLogsSource() {
return {
loadLogs: () => {
return this.nodeName && this.workflowsService.getStepLogs(this.workflowTree.workflow.metadata.namespace, this.nodeName);
},
getKey() {
return this.nodeName;
}
loadLogs: () => {
return this.nodeName && this.workflowsService.getStepLogs(this.workflowTree.workflow.metadata.namespace, this.nodeName);
},
getKey() {
return this.nodeName;
}
};
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
</ax-tab>
<ax-tab tabKey="logs" tabTitle="LOGS">
<div class="workflow-step-details-box__logs workflow-step-details-box__logs--panel">
<ax-logs [source]="getLogsSource()" *ngIf="tab==='logs'" [tailLogs]="true"></ax-logs>
<ax-logs #logs [source]="getLogsSource()" [tailLogs]="true"></ax-logs>
<div class="row workflow-step-details-box__logs-footer">
<div class="columns small-12">
<a class="workflow-tree__back-to-top" (click)="logs.scrollToTop()">
<span class="workflow-tree__back-to-top__ico"><i class="fa fa-chevron-up"></i></span> BACK TO TOP
</a>
</div>
</div>
</div>
</ax-tab>
<ax-tab tabKey="artifacts" tabTitle="ARTIFACTS">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
@import '../../../assets/styles/config';
.workflow-step-details-box {
&__logs {
height: calc(100vh - 409px);
&--panel {
height: calc(100vh - 220px);
height: calc(100vh - 129px);
}
}

&__logs-footer {
padding-top: 12px;
padding-bottom: 12px;
border-top: 1px solid $ax-color-gray-4;
}
}

0 comments on commit 849e916

Please sign in to comment.