1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Change modal size to 600x600

This commit is contained in:
Anders Åberg
2025-04-15 11:55:10 +02:00
parent b62220ace1
commit 8d598c33ed
2 changed files with 4 additions and 4 deletions

View File

@@ -257,7 +257,7 @@ export class WindowMain {
this.win = new BrowserWindow({ this.win = new BrowserWindow({
width: this.windowStates[mainWindowSizeKey].width, width: this.windowStates[mainWindowSizeKey].width,
height: this.windowStates[mainWindowSizeKey].height, height: this.windowStates[mainWindowSizeKey].height,
minWidth: 680, minWidth: 600,
minHeight: 500, minHeight: 500,
x: this.windowStates[mainWindowSizeKey].x, x: this.windowStates[mainWindowSizeKey].x,
y: this.windowStates[mainWindowSizeKey].y, y: this.windowStates[mainWindowSizeKey].y,

View File

@@ -3,8 +3,8 @@ import { BrowserWindow } from "electron";
import { WindowState } from "./models/domain/window-state"; import { WindowState } from "./models/domain/window-state";
// change as needed, however limited by mainwindow minimum size // change as needed, however limited by mainwindow minimum size
const popupWidth = 680; const popupWidth = 600;
const popupHeight = 500; const popupHeight = 600;
type Position = { x: number; y: number }; type Position = { x: number; y: number };
@@ -40,7 +40,7 @@ function positionWindow(window: BrowserWindow, position?: Position) {
} }
export function applyMainWindowStyles(window: BrowserWindow, existingWindowState: WindowState) { export function applyMainWindowStyles(window: BrowserWindow, existingWindowState: WindowState) {
window.setMinimumSize(680, 500); window.setMinimumSize(600, 500);
// need to guard against null/undefined values // need to guard against null/undefined values