1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-09-20 01:18:39 +03:00
This commit is contained in:
Eugene Pankov 2021-02-20 19:43:21 +01:00
parent 92d34343f1
commit c119d3283e
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 8 additions and 5 deletions

View File

@ -6,6 +6,7 @@ $tabs-height: 38px;
flex: 1000 1 200px;
width: 200px;
padding: 0 10px;
&.flex-width {
flex: 1000 1 auto;
@ -29,7 +30,6 @@ $tabs-height: 38px;
-webkit-app-region: no-drag;
cursor: -webkit-grab;
margin-left: 10px;
width: 22px;
border-radius: 10px;
text-align: center;
@ -39,7 +39,7 @@ $tabs-height: 38px;
.name {
flex: auto;
margin: 0 1px 0 10px;
margin-top: 1px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@ -47,6 +47,10 @@ $tabs-height: 38px;
align-self: center;
}
.index + .name {
margin-left: 10px;
}
button {
display: block;
flex: none;
@ -60,7 +64,6 @@ $tabs-height: 38px;
border-radius: $button-size / 2;
line-height: $button-size;
align-self: center;
margin-right: 10px;
text-align: center;
font-size: 20px;

View File

@ -29,7 +29,7 @@ export class TabHeaderComponent {
@Input() @HostBinding('class.has-activity') hasActivity: boolean
@Input() tab: BaseTabComponent
@Input() progress: number|null
@ViewChild('handle') handle: ElementRef
@ViewChild('handle') handle?: ElementRef
private constructor (
public app: AppService,
@ -58,7 +58,7 @@ export class TabHeaderComponent {
}
ngAfterViewInit () {
if (this.hostApp.platform === Platform.macOS) {
if (this.handle && this.hostApp.platform === Platform.macOS) {
this.parentDraggable.setDragHandle(this.handle.nativeElement)
}
}