mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-17 09:59:58 +00:00
added static/dynamic tab size setting - fixes #3426
This commit is contained in:
parent
aab1ae3ceb
commit
23bff8750c
@ -7,6 +7,11 @@ $tabs-height: 38px;
|
|||||||
flex: 1000 1 200px;
|
flex: 1000 1 200px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
|
||||||
|
&.flex-width {
|
||||||
|
flex: 1000 1 auto;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
@ -81,6 +81,10 @@ export class TabHeaderComponent {
|
|||||||
return items.slice(1)
|
return items.slice(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@HostBinding('class.flex-width') get isFlexWidthEnabled (): boolean {
|
||||||
|
return this.config.store.appearance.flexTabs
|
||||||
|
}
|
||||||
|
|
||||||
@HostListener('dblclick') onDoubleClick (): void {
|
@HostListener('dblclick') onDoubleClick (): void {
|
||||||
this.showRenameTabModal()
|
this.showRenameTabModal()
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@ appearance:
|
|||||||
dockFill: 0.5
|
dockFill: 0.5
|
||||||
dockHideOnBlur: false
|
dockHideOnBlur: false
|
||||||
dockAlwaysOnTop: true
|
dockAlwaysOnTop: true
|
||||||
|
flexTabs: false
|
||||||
tabsLocation: top
|
tabsLocation: top
|
||||||
cycleTabs: true
|
cycleTabs: true
|
||||||
theme: Standard
|
theme: Standard
|
||||||
|
@ -66,6 +66,29 @@ ngb-tabset.vertical(type='pills', [activeId]='activeTab')
|
|||||||
)
|
)
|
||||||
| Right
|
| 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
|
.form-line
|
||||||
.header
|
.header
|
||||||
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
|
.title(*ngIf='hostApp.platform !== Platform.macOS') Acrylic background
|
||||||
|
Loading…
x
Reference in New Issue
Block a user