From d5e01d08f0673f14f0b5d83b44066184632f8f6a Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Wed, 20 May 2020 13:29:40 +0530 Subject: [PATCH] fix: SDA-2080 (Fix a target CSS issue with SFE-Lite & fix title bar button issue in 9.x) (#999) * SDA-2080 - Target jss class name instead of dev defined * SDA-2080 - Fix title bar issue with 9.x --- src/renderer/components/windows-title-bar.tsx | 2 +- src/renderer/styles/title-bar.less | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/windows-title-bar.tsx b/src/renderer/components/windows-title-bar.tsx index 7a7b7dc6..29bb6b5c 100644 --- a/src/renderer/components/windows-title-bar.tsx +++ b/src/renderer/components/windows-title-bar.tsx @@ -257,7 +257,7 @@ export default class WindowsTitleBar extends React.Component<{}, IState> { private updateTitleBar(): void { const { isFullScreen, titleBarHeight } = this.state; const contentWrapper = document.getElementById('content-wrapper'); - const appView = document.getElementsByClassName('AppView-root-3')[0] as HTMLElement; + const appView = document.getElementsByClassName('jss3')[0] as HTMLElement; const root = document.getElementById('root'); const railContainer = document.getElementsByClassName('ReactRail-container-2')[0] as HTMLElement; const railList = document.getElementsByClassName('railList')[0] as HTMLElement; diff --git a/src/renderer/styles/title-bar.less b/src/renderer/styles/title-bar.less index 81288141..e467c5b9 100644 --- a/src/renderer/styles/title-bar.less +++ b/src/renderer/styles/title-bar.less @@ -89,6 +89,7 @@ border-radius: 0; padding: 10px 15px; cursor: default; + align-content: center; &:hover { background-color: @background_color_1;