Reduce window size
This commit is contained in:
@@ -75,7 +75,7 @@ function createWindow() {
|
||||
}
|
||||
|
||||
// Create the browser window.
|
||||
const height = (process.env.ELECTRON_START_URL || (os.platform() === 'darwin') ? 364 : 344) - ((os.platform() === 'win32') ? 0 : 20);
|
||||
const height = (process.env.ELECTRON_START_URL || (os.platform() === 'darwin') ? 294 : 274) - ((os.platform() === 'win32') ? 0 : 20);
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 428 + ((os.platform() === 'win32') ? 0 : (os.platform() === 'darwin') ? 150 : 160),
|
||||
height: height,
|
||||
|
||||
@@ -670,7 +670,7 @@ class App extends IPCContainer {
|
||||
let key = 0;
|
||||
mainContent.push((
|
||||
<div key={'rvd_' + key++}
|
||||
style={{height: '25%'}}>
|
||||
style={{height: '32%'}}>
|
||||
<ReleaseVersionDisplay disabled={this.state.DownloadActive || this.state.ExtractActive || this.state.MountsBusy}
|
||||
downloadClicked={this.handleReleaseDownload}
|
||||
downloadDisabled={!downloadEnabled}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
--heading_other_text_color: var(--heading_text_color);
|
||||
--text_color_transition: color 0.3s;
|
||||
|
||||
--default_font_size: 4vmin
|
||||
--default_font_size: 14px
|
||||
}
|
||||
|
||||
* {
|
||||
|
||||
@@ -12,8 +12,8 @@ if (!process.versions.hasOwnProperty('electron')) {
|
||||
if (ipcRenderer) {
|
||||
ipcRenderer.on(Constants.IPC_Get_Platform_Reply, (event, arg) => {
|
||||
if (arg.OSPlatform === 'linux') {
|
||||
let root = document.documentElement;
|
||||
root.style.setProperty('--default_font_size', '4.8vmin');
|
||||
const root = document.documentElement;
|
||||
root.style.setProperty('--default_font_size', '15px');
|
||||
}
|
||||
|
||||
ReactDOM.render(<App platform={arg.Platform} version={packageJson.version}/>, document.getElementById('root'));
|
||||
|
||||
Reference in New Issue
Block a user