mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 18:43:25 +00:00
Makes a small change to center the window of the desktop app when bounds change ([#2617](https://github.com/bitwarden/clients/issues/2617)) (#16595)
This is my first commit, and I don't believe this would count as a major UX change so I have not made a forum post.
This commit is contained in:
@@ -500,9 +500,9 @@ export class WindowMain {
|
||||
displayBounds.x !== state.displayBounds.x ||
|
||||
displayBounds.y !== state.displayBounds.y
|
||||
) {
|
||||
state.x = undefined;
|
||||
state.y = undefined;
|
||||
displayBounds = screen.getPrimaryDisplay().bounds;
|
||||
state.x = displayBounds.x + displayBounds.width / 2 - state.width / 2;
|
||||
state.y = displayBounds.y + displayBounds.height / 2 - state.height / 2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user