mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Change modal size to 600x600
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user