Skip to content

Commit

Permalink
fix(tab): 修复打开多Tab引起Tab折叠的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
orangemio authored and ibuler committed Aug 5, 2020
1 parent 6ef793c commit e55af23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/elements/content-tab/content-tab.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ li span {
padding-right: 14px;
line-height: 26px;
cursor: default;
/*width: 145px;*/
width: 145px;
height: 26px;
display: block;
}
Expand Down
1 change: 1 addition & 0 deletions src/app/elements/content-tab/content-tab.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<li
[ngClass]="{'active': view.active,'disconnected': !view.connected, 'hidden': view.closed != false}"
[id]="view.id" (click)="setActive()" (dblclick)="view.editable=true;setActive()"
[title]="view.host.hostname"
>
<span *ngIf="view.nick && !view.editable">{{view.nick | truncatechars:25 }}</span>
<input *ngIf="view.editable" [(ngModel)]="view.nick" (blur)="view.editable=false" (keyup.enter)="view.editable=false" autofocus="autofocus"/>
Expand Down

0 comments on commit e55af23

Please sign in to comment.