SDA-4682 - Increase the minimum window size (#2236)

This commit is contained in:
Kiran Niranjan 2024-12-13 15:39:18 +05:30 committed by GitHub
parent 6383b3044d
commit 15bf9a4056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -102,6 +102,9 @@ export enum ClientSwitchType {
export const DEFAULT_WELCOME_SCREEN_WIDTH: number = 542;
export const DEFAULT_WELCOME_SCREEN_HEIGHT: number = 333;
const MIN_WIDTH = 400;
const MIN_HEIGHT = 400;
const MAIN_WEB_CONTENTS_EVENTS = ['enter-full-screen', 'leave-full-screen'];
const SHORTCUT_KEY_THROTTLE = 1000; // 1sec
@ -303,8 +306,8 @@ export class WindowHandler {
alwaysOnTop:
this.config.alwaysOnTop === CloudConfigDataTypes.ENABLED || false,
frame: !this.isCustomTitleBar,
minHeight: 300,
minWidth: 300,
minHeight: MIN_HEIGHT,
minWidth: MIN_WIDTH,
title: 'Symphony',
show: false,
},