mirror of
https://github.com/Eugeny/tabby.git
synced 2024-09-20 09:27:16 +03:00
fixed #3464
This commit is contained in:
parent
92d34343f1
commit
c119d3283e
@ -6,6 +6,7 @@ $tabs-height: 38px;
|
|||||||
|
|
||||||
flex: 1000 1 200px;
|
flex: 1000 1 200px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
padding: 0 10px;
|
||||||
|
|
||||||
&.flex-width {
|
&.flex-width {
|
||||||
flex: 1000 1 auto;
|
flex: 1000 1 auto;
|
||||||
@ -29,7 +30,6 @@ $tabs-height: 38px;
|
|||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
cursor: -webkit-grab;
|
cursor: -webkit-grab;
|
||||||
|
|
||||||
margin-left: 10px;
|
|
||||||
width: 22px;
|
width: 22px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -39,7 +39,7 @@ $tabs-height: 38px;
|
|||||||
|
|
||||||
.name {
|
.name {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
margin: 0 1px 0 10px;
|
margin-top: 1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@ -47,6 +47,10 @@ $tabs-height: 38px;
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.index + .name {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
display: block;
|
display: block;
|
||||||
flex: none;
|
flex: none;
|
||||||
@ -60,7 +64,6 @@ $tabs-height: 38px;
|
|||||||
border-radius: $button-size / 2;
|
border-radius: $button-size / 2;
|
||||||
line-height: $button-size;
|
line-height: $button-size;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
margin-right: 10px;
|
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
@ -29,7 +29,7 @@ export class TabHeaderComponent {
|
|||||||
@Input() @HostBinding('class.has-activity') hasActivity: boolean
|
@Input() @HostBinding('class.has-activity') hasActivity: boolean
|
||||||
@Input() tab: BaseTabComponent
|
@Input() tab: BaseTabComponent
|
||||||
@Input() progress: number|null
|
@Input() progress: number|null
|
||||||
@ViewChild('handle') handle: ElementRef
|
@ViewChild('handle') handle?: ElementRef
|
||||||
|
|
||||||
private constructor (
|
private constructor (
|
||||||
public app: AppService,
|
public app: AppService,
|
||||||
@ -58,7 +58,7 @@ export class TabHeaderComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit () {
|
ngAfterViewInit () {
|
||||||
if (this.hostApp.platform === Platform.macOS) {
|
if (this.handle && this.hostApp.platform === Platform.macOS) {
|
||||||
this.parentDraggable.setDragHandle(this.handle.nativeElement)
|
this.parentDraggable.setDragHandle(this.handle.nativeElement)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user