Skip to content

Commit

Permalink
SDA-4682 - Increase the minimum window size
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranNiranjan committed Dec 13, 2024
1 parent b18bb12 commit caf0772
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/window-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit caf0772

Please sign in to comment.