[MM-60605] Fix the Download button being hidden on Windows/Linux (#3148)

* [MM-60605] Fix missing downloads/developer mode icon hidden on Linux and Windows

* Disable for mac

* Fix lint

* Fix misalignment on Windows

* "fix" linux

* Return to inline version, ignore Linux
This commit is contained in:
Devin Binnie
2024-09-23 08:41:40 -04:00
committed by GitHub
parent b4eeabb366
commit 3b179c7ec2
3 changed files with 49 additions and 61 deletions

View File

@@ -483,16 +483,17 @@ class MainPage extends React.PureComponent<Props, State> {
developerMode={this.state.developerMode}
/>
{downloadsDropdownButton}
{window.process.platform !== 'darwin' && this.state.fullScreen &&
<span className='title-bar-btns'>
<div
className='button full-screen-button'
onClick={this.handleExitFullScreen}
>
<i className='icon icon-arrow-collapse'/>
</div>
</span>
}
{window.process.platform !== 'darwin' && this.state.fullScreen && (
<div
className={`button full-screen-button${this.props.darkMode ? ' darkMode' : ''}`}
onClick={this.handleExitFullScreen}
>
<i className='icon icon-arrow-collapse'/>
</div>
)}
{window.process.platform !== 'darwin' && !this.state.fullScreen && (
<span style={{width: `${window.innerWidth - (window.navigator.windowControlsOverlay?.getTitlebarAreaRect().width ?? 0)}px`}}/>
)}
</div>
</Row>
);