1
0
mirror of https://github.com/Eugeny/tabby.git synced 2025-07-27 08:58:33 +00:00

fixed offset with tabs on bottom on macos (fixes )

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

@@ -24,6 +24,7 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
@Input() zoom = 0 @Input() zoom = 0
@ViewChild('content') content @ViewChild('content') content
@HostBinding('style.background-color') backgroundColor: string @HostBinding('style.background-color') backgroundColor: string
@HostBinding('class.top-padded') topPadded: boolean
frontend: Frontend frontend: Frontend
sessionCloseSubscription: Subscription sessionCloseSubscription: Subscription
hotkeysSubscription: Subscription hotkeysSubscription: Subscription
@@ -304,6 +305,10 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
configure (): void { configure (): void {
this.frontend.configure() 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.background === 'colorScheme') {
if (this.config.store.terminal.colorScheme.background) { if (this.config.store.terminal.colorScheme.background) {
this.backgroundColor = this.config.store.terminal.colorScheme.background this.backgroundColor = this.config.store.terminal.colorScheme.background

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