1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 05:53:42 +00:00

Avoided changing minimum size

This commit is contained in:
Anders Åberg
2024-10-28 18:31:28 +01:00
parent b03615761a
commit fd5838253f
2 changed files with 6 additions and 5 deletions

View File

@@ -210,8 +210,8 @@ export class WindowMain {
this.win = new BrowserWindow({
width: this.windowStates[mainWindowSizeKey].width,
height: this.windowStates[mainWindowSizeKey].height,
minWidth: 400,
minHeight: 400,
minWidth: 680,
minHeight: 500,
x: this.windowStates[mainWindowSizeKey].x,
y: this.windowStates[mainWindowSizeKey].y,
title: app.name,

View File

@@ -2,8 +2,9 @@ import { BrowserWindow } from "electron";
import { WindowState } from "./models/domain/window-state";
const popupWidth = 450;
const popupHeight = 450;
// change as needed, however limited by mainwindow minimum size
const popupWidth = 680;
const popupHeight = 500;
export function applyPopupModalStyles(window: BrowserWindow) {
window.unmaximize();
@@ -25,7 +26,7 @@ export function applyPopupModalStyles(window: BrowserWindow) {
}
export function applyMainWindowStyles(window: BrowserWindow, existingWindowState: WindowState) {
window.setMinimumSize(400, 400);
window.setMinimumSize(680, 500);
// need to guard against null/undefined values
if (existingWindowState) {