1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-28 05:36:31 +03:00

fixed offset with tabs on bottom on macos (fixes #629)

This commit is contained in:
Eugene Pankov 2019-01-27 23:12:46 +01:00
parent a2128ca1f2
commit 04bf5dbcfb
2 changed files with 9 additions and 0 deletions

View File

@ -24,6 +24,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
@Input() zoom = 0
@ViewChild('content') content
@HostBinding('style.background-color') backgroundColor: string
@HostBinding('class.top-padded') topPadded: boolean
frontend: Frontend
sessionCloseSubscription: Subscription
hotkeysSubscription: Subscription
@ -304,6 +305,10 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
configure (): void {
this.frontend.configure()
this.topPadded = this.hostApp.platform === Platform.macOS
&& this.config.store.appearance.frame === 'thin'
&& this.config.store.appearance.tabsLocation === 'bottom'
if (this.config.store.terminal.background === 'colorScheme') {
if (this.config.store.terminal.colorScheme.background) {
this.backgroundColor = this.config.store.terminal.colorScheme.background

View File

@ -3,6 +3,10 @@
display: flex;
overflow: hidden;
&.top-padded {
padding-top: 20px;
}
&> .content {
flex: auto;
position: relative;