Fix terminal invisible on terminalOrConsole == 'console'

This commit is contained in:
Kristóf Tóth 2018-07-20 11:04:18 +02:00
parent bc50d52f4d
commit 5b9046e967
2 changed files with 6 additions and 2 deletions

View File

@ -34,8 +34,8 @@
[class.selected]="selectedTerminalMenuItem === 'console'">CONSOLE</button> [class.selected]="selectedTerminalMenuItem === 'console'">CONSOLE</button>
</div> </div>
<hr> <hr>
<app-terminal [hidden]="selectedTerminalMenuItem !== 'terminal'"></app-terminal> <app-terminal [class.hidden]="selectedTerminalMenuItem !== 'terminal'"></app-terminal>
<app-console [hidden]="selectedTerminalMenuItem !== 'console'"></app-console> <app-console [class.hidden]="selectedTerminalMenuItem !== 'console'"></app-console>
</div> </div>
<div class="tfw-sidebar"> <div class="tfw-sidebar">
<app-sidebar (layoutChanged)="setLayout($event)" [layout]="layout"></app-sidebar> <app-sidebar (layoutChanged)="setLayout($event)" [layout]="layout"></app-sidebar>

View File

@ -112,6 +112,10 @@
filter: blur(3px); filter: blur(3px);
} }
.hidden {
@include hide-component();
}
.terminal-ide-web { .terminal-ide-web {
@include set-tfw-web('terminal-ide-web'); @include set-tfw-web('terminal-ide-web');
@include position-grid-items(map_get($layouts, 'terminal-ide-web'),'.tfw-'); @include position-grid-items(map_get($layouts, 'terminal-ide-web'),'.tfw-');