mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-20 19:39:54 +00: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
|
@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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user