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:
parent
a2128ca1f2
commit
04bf5dbcfb
@ -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
|
||||
|
@ -3,6 +3,10 @@
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
|
||||
&.top-padded {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
&> .content {
|
||||
flex: auto;
|
||||
position: relative;
|
||||
|
Loading…
Reference in New Issue
Block a user