1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

Ugly hacks

This commit is contained in:
Anders Åberg
2024-09-11 19:11:31 +02:00
parent 54cc54272e
commit e4ca8a21bf
5 changed files with 52 additions and 14 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 105 KiB

View File

@@ -9,13 +9,15 @@ export type BrowserSyncVerificationDialogParams = {
@Component({
standalone: true,
template: `
<img
src="../resources/passkeys.png"
class="mb-4 logo"
alt="Bitwarden"
width="660"
height="580"
/>
<div style="background:white; display:flex; justify-content: center; align-items: center;">
<img
src="../resources/Frame2101.svg"
class="mb-4 logo"
alt="Bitwarden"
width="440"
height="400"
/>
</div>
`,
imports: [JslibModule],
})

View File

@@ -212,10 +212,10 @@ export class TrayMain {
const existingWin = this.windowMain.win;
existingWin.setBounds({
width: 400,
height: 600,
width: 500,
height: 400,
});
existingWin.setSize(400, 600, true);
existingWin.setSize(450, 450, true);
existingWin.setWindowButtonVisibility(false);
existingWin.resizable = false;
await existingWin.loadURL(

View File

@@ -182,8 +182,8 @@ export class WindowMain {
this.win = new BrowserWindow({
width: this.windowStates[mainWindowSizeKey].width,
height: this.windowStates[mainWindowSizeKey].height,
minWidth: 680,
minHeight: 500,
minWidth: 400,
minHeight: 400,
x: this.windowStates[mainWindowSizeKey].x,
y: this.windowStates[mainWindowSizeKey].y,
title: app.name,
@@ -205,8 +205,8 @@ export class WindowMain {
} else {
//
this.win = new BrowserWindow({
width: 400,
height: 600,
width: 450,
height: 450,
resizable: false,
icon: null,
center: true,