From 692045ce772eb990661cddeaf547aafc75786d75 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Thu, 4 Jan 2018 21:20:42 +0100 Subject: [PATCH] fixed button alignment on macOS --- terminus-core/src/components/appRoot.component.pug | 2 +- terminus-core/src/components/appRoot.component.scss | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/terminus-core/src/components/appRoot.component.pug b/terminus-core/src/components/appRoot.component.pug index ac4bf554..a2f9d5c1 100644 --- a/terminus-core/src/components/appRoot.component.pug +++ b/terminus-core/src/components/appRoot.component.pug @@ -29,7 +29,7 @@ title-bar( ) i.fa([class]='"fa fa-" + button.icon') - .drag-space(*ngIf='config.store.appearance.frame == "thin" && hostApp.platform != Platform.macOS') + .drag-space([class.persistent]='config.store.appearance.frame == "thin" && hostApp.platform != Platform.macOS') .btn-group button.btn.btn-secondary.btn-tab-bar( diff --git a/terminus-core/src/components/appRoot.component.scss b/terminus-core/src/components/appRoot.component.scss index 218f4120..67bbbfe4 100644 --- a/terminus-core/src/components/appRoot.component.scss +++ b/terminus-core/src/components/appRoot.component.scss @@ -55,15 +55,20 @@ $tab-border-radius: 4px; } &>.drag-space { - min-width: 100px; - flex: 1 0 25%; + min-width: 1px; + flex: 1 0 1%; -webkit-app-region: drag; + + &.persistent { + min-width: 100px; + flex: 1 0 25%; + } } &.inset { padding-left: 85px; } - + window-controls { margin-left: 10px; }