allow dragging other tabs into existing split tabs - fixes #1347

This commit is contained in:
Eugene Pankov
2021-07-21 22:59:58 +02:00
parent ff49b9e38a
commit be4cc804a2
18 changed files with 357 additions and 66 deletions

View File

@@ -2,9 +2,14 @@
.progressbar([style.width]='progress + "%"', *ngIf='progress != null')
.activity-indicator(*ngIf='tab.activity$|async')
.index(*ngIf='!config.store.terminal.hideTabIndex', #handle) {{index + 1}}
ng-container(*ngIf='!config.store.terminal.hideTabIndex')
.index(*ngIf='hostApp.platform === Platform.macOS', cdkDragHandle) {{index + 1}}
.index(*ngIf='hostApp.platform !== Platform.macOS') {{index + 1}}
.name(
[title]='tab.customTitle || tab.title',
[class.no-hover]='config.store.terminal.hideCloseButton'
) {{tab.customTitle || tab.title}}
button(*ngIf='!config.store.terminal.hideCloseButton',(click)='app.closeTab(tab, true)') ×
ng-content