1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-28 21:13:18 +03:00

added static/dynamic tab size setting - fixes #3426

This commit is contained in:
Eugene Pankov 2021-02-13 12:55:55 +01:00
parent aab1ae3ceb
commit 23bff8750c
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
4 changed files with 33 additions and 0 deletions

View File

@ -7,6 +7,11 @@ $tabs-height: 38px;
flex: 1000 1 200px;
width: 200px;
&.flex-width {
flex: 1000 1 auto;
width: auto;
}
display: flex;
flex-direction: row;
min-width: 0;

View File

@ -81,6 +81,10 @@ export class TabHeaderComponent {
return items.slice(1)
}
@HostBinding('class.flex-width') get isFlexWidthEnabled (): boolean {
return this.config.store.appearance.flexTabs
}
@HostListener('dblclick') onDoubleClick (): void {
this.showRenameTabModal()
}

View File

@ -4,6 +4,7 @@ appearance:
dockFill: 0.5
dockHideOnBlur: false
dockAlwaysOnTop: true
flexTabs: false
tabsLocation: top
cycleTabs: true
theme: Standard

View File

@ -66,6 +66,29 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab')
)
| Right
.form-line
.header
.title Tabs width
.btn-group(
[(ngModel)]='config.store.appearance.flexTabs',
(ngModelChange)='config.save()',
ngbRadioGroup
)
label.btn.btn-secondary(ngbButtonLabel)
input(
type='radio',
ngbButton,
[value]='true'
)
| Dynamic
label.btn.btn-secondary(ngbButtonLabel)
input(
type='radio',
ngbButton,
[value]='false'
)
| Fixed
.form-line
.header
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background