From aef6d044b3e4afd3935d84cc5a827e97cd612562 Mon Sep 17 00:00:00 2001 From: Piotr Pekala Date: Wed, 28 Aug 2019 07:04:17 -0700 Subject: [PATCH] exchnaging filter to mat menu --- .../log-console/log-console.component.html | 23 +++++++++---- .../log-console/log-console.component.scss | 32 +++++++++---------- .../log-console/log-console.component.ts | 2 +- 3 files changed, 33 insertions(+), 24 deletions(-) diff --git a/src/app/components/project-map/log-console/log-console.component.html b/src/app/components/project-map/log-console/log-console.component.html index c7c2bea3..39cd7e9e 100644 --- a/src/app/components/project-map/log-console/log-console.component.html +++ b/src/app/components/project-map/log-console/log-console.component.html @@ -1,15 +1,26 @@
-
- Console - +
+
Console
+ + + + + + + + + +
@@ -22,10 +33,9 @@ {{event.message}}
-
- keyboard_arrow_right + keyboard_arrow_right
-
diff --git a/src/app/components/project-map/log-console/log-console.component.scss b/src/app/components/project-map/log-console/log-console.component.scss index f3428e8b..e3b1ec5d 100644 --- a/src/app/components/project-map/log-console/log-console.component.scss +++ b/src/app/components/project-map/log-console/log-console.component.scss @@ -11,22 +11,31 @@ font-size: 12px; } +.filterButton { + background: #263238; + color: white; + border: none; +} + +.consoleFiltering { + display: flex; +} + .consoleHeader { width: 100%; - height: 50px; + height: 30px; font-size: 12px; overflow: hidden; - margin-right: 5px; display: flex; - padding: 5px; + padding: 2px; justify-content: space-between; } .console { width: 596px; - height: 100px; + height: 120px; overflow-y: scroll; - margin: 2px; + padding: 2px; color: #dbd5d5; scrollbar-color: darkgrey #263238; scrollbar-width: thin; @@ -45,25 +54,16 @@ border: none; } -.divider { - width: 580px; - margin-left: 10px; - margin-right: 10px; - height: 2px; +.inputIcon { + margin-top: 2px; } mat-icon { - margin-top: 4px; font-size: 20px; width: 20px; height: 20px; } -mat-checkbox { - margin-right: 5px; - margin-left: 5px; -} - input:focus{ outline: none; } diff --git a/src/app/components/project-map/log-console/log-console.component.ts b/src/app/components/project-map/log-console/log-console.component.ts index 6b1aed75..a1177b80 100644 --- a/src/app/components/project-map/log-console/log-console.component.ts +++ b/src/app/components/project-map/log-console/log-console.component.ts @@ -187,7 +187,7 @@ export class LogConsoleComponent implements OnInit, AfterViewInit, OnDestroy { clearConsole() { this.filteredEvents = []; - this.console.nativeElement.scrollTop = this.console.nativeElement.scrollHeight; + this.console.nativeElement.scrollTop = this.console.nativeElement.scrollHeight * 2; } showCommand(message: string) {