Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Fix title bar is missing on Linux (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Oct 22, 2020
1 parent 56666f5 commit b509b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/app-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const AppWrapper = ({ children, shouldUseDarkColors }) => {
overflow: 'hidden',
}}
>
{window.process.platform === 'win32' && <WindowsTitleBar title={window.mode !== 'main' ? document.title : undefined} />}
<div style={{ height: window.process.platform === 'win32' ? 'calc(100vh - 32px)' : '100vh' }}>
{window.process.platform !== 'darwin' && <WindowsTitleBar title={window.mode !== 'main' ? document.title : undefined} />}
<div style={{ height: window.process.platform !== 'darwin' ? 'calc(100vh - 32px)' : '100vh' }}>
{children}
</div>
</div>
Expand Down

0 comments on commit b509b66

Please sign in to comment.