fix: fix the long long name

parent 39a33b5d
...@@ -125,7 +125,7 @@ def asset_groups_assets(): ...@@ -125,7 +125,7 @@ def asset_groups_assets():
}, },
{ {
"id": 1, "id": 1,
"name": "Default", "name": "Default long name long name long name",
"comment": "Default asset group", "comment": "Default asset group",
"assets_granted": [ "assets_granted": [
{ {
...@@ -157,7 +157,7 @@ def asset_groups_assets(): ...@@ -157,7 +157,7 @@ def asset_groups_assets():
}, },
{ {
"id": 44, "id": 44,
"hostname": "192.168.1.6", "hostname": "192.168.1.6 long name long name long name long name long name",
"ip": "192.168.2.6", "ip": "192.168.2.6",
"port": 22, "port": 22,
"platform": "Linux", "platform": "Linux",
......
...@@ -42,6 +42,9 @@ label { ...@@ -42,6 +42,9 @@ label {
list-style: none; list-style: none;
cursor: pointer; cursor: pointer;
color: #ffffff; color: #ffffff;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
.filetree label { .filetree label {
......
...@@ -7,9 +7,10 @@ ...@@ -7,9 +7,10 @@
<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}}">{{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)" (contextmenu)="onRightClick($event)"> <li *ngFor="let host of hostGroup.assets_granted | SearchFilter: q" (click)="Connect(host)"
(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>
......
...@@ -47,6 +47,7 @@ export class CleftbarComponent implements OnInit { ...@@ -47,6 +47,7 @@ export class CleftbarComponent implements OnInit {
event: MouseEvent; event: MouseEvent;
clientX = 0; clientX = 0;
clientY = 0; clientY = 0;
TooltipPosition = 'above';
static Reload() { static Reload() {
} }
......
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