-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MM-60605] Fix the Download button being hidden on Windows/Linux #3148
Changes from 5 commits
d409890
1905067
820ef4d
40fdb40
080766a
9db56c5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -438,6 +438,22 @@ class MainPage extends React.PureComponent<Props, State> { | |
|
||
const activeServer = this.state.servers.find((srv) => srv.id === this.state.activeServerId); | ||
|
||
let titleBarSpacing; | ||
if (window.process.platform !== 'darwin') { | ||
if (this.state.fullScreen && window.process.platform !== 'linux') { | ||
titleBarSpacing = ( | ||
<div | ||
className={`button full-screen-button${this.props.darkMode ? ' darkMode' : ''}`} | ||
onClick={this.handleExitFullScreen} | ||
> | ||
<i className='icon icon-arrow-collapse'/> | ||
</div> | ||
); | ||
} else { | ||
titleBarSpacing = (<span style={{width: `${window.innerWidth - (window.navigator.windowControlsOverlay?.getTitlebarAreaRect().width ?? 0)}px`}}/>); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, does this mean that Linux doesn't need this special case for full screen? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. At this point, no. I spent some time trying to work around it but full screen under Linux refuses to behave nicely. So i'm going to create a separate PR that removes full screen support from Linux. |
||
} | ||
} | ||
|
||
const topRow = ( | ||
<Row | ||
className={topBarClassName} | ||
|
@@ -483,16 +499,7 @@ 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> | ||
} | ||
{titleBarSpacing} | ||
</div> | ||
</Row> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In full-screen does the download button is shown with this case for Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it shows correctly