fix(cleftbar): leftbar can't scroll

when get long host list, leftbar can't scroll

#1012
parent 64d29255
...@@ -78,3 +78,10 @@ label { ...@@ -78,3 +78,10 @@ label {
.fa.fa-undefined:before { .fa.fa-undefined:before {
content: "\f26c"; content: "\f26c";
} }
.overflow {
height: 100%;
overflow-y: scroll;
position: absolute;
width: 100%;
}
...@@ -4,19 +4,23 @@ ...@@ -4,19 +4,23 @@
title="Search" title="Search"
type="text" tabindex="1" spellcheck="false" autofocus [(ngModel)]="q" (keyup.enter)="Search(q)"> type="text" tabindex="1" spellcheck="false" autofocus [(ngModel)]="q" (keyup.enter)="Search(q)">
</div> </div>
<div class="overflow">
<ul class="filetree"> <ul class="filetree">
<li *ngFor="let hostGroup of HostGroups | SearchFilter: q; let i = index "> <li *ngFor="let hostGroup of HostGroups | SearchFilter: q; let i = index ">
<input type="checkbox" id="hostgroup-{{i}}"> <input type="checkbox" id="hostgroup-{{i}}">
<label for="hostgroup-{{i}}" matTooltip="{{hostGroup.name}}" [matTooltipPosition]="TooltipPosition">{{hostGroup.name}}</label> <label for="hostgroup-{{i}}" matTooltip="{{hostGroup.name}}" [matTooltipPosition]="TooltipPosition">{{hostGroup.name}}</label>
<ul [ngClass]="{'insearch': q }"> <ul [ngClass]="{'insearch': q }">
<li *ngFor="let host of hostGroup.assets_granted | SearchFilter: q" (click)="Connect(host)" <li *ngFor="let host of hostGroup.assets_granted | SearchFilter: q" (click)="Connect(host)"
(contextmenu)="onRightClick($event)" matTooltip="{{host.hostname}}" [matTooltipPosition]="TooltipPosition"> (contextmenu)="onRightClick($event)" matTooltip="{{host.hostname}}"
[matTooltipPosition]="TooltipPosition">
<i class="fa" [ngClass]="'fa-'+(host.platform||'undefined').toLowerCase()" id="fa-{{i}}"></i> <i class="fa" [ngClass]="'fa-'+(host.platform||'undefined').toLowerCase()" id="fa-{{i}}"></i>
{{host.hostname}} {{host.hostname}}
</li> </li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div>
</div> </div>
<div class="footer"> <div class="footer">
Version <strong>{{version}}</strong> Version <strong>{{version}}</strong>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment