1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 10:43:47 +00:00

Address modal popup issue

This commit is contained in:
Jeffrey Holland
2025-10-17 14:00:08 +02:00
parent e184d44eca
commit e542a97529

View File

@@ -43,7 +43,6 @@ import {
NativeAutofillPasswordCredential,
NativeAutofillSyncCommand,
} from "../../platform/main/autofill/sync.command";
import { isMac } from "../../utils";
import type { NativeWindowObject } from "./desktop-fido2-user-interface.service";
@@ -443,9 +442,8 @@ export class DesktopAutofillService implements OnDestroy {
}
function normalizePosition(position: { x: number; y: number }): { x: number; y: number } {
// If macOS, the position we're sending is too far left.
// Add 100 pixels to the x-coordinate to offset the native OS dialog positioning.
const xPostionOffset = isMac() ? 100 : 0; // Offset for native dialog positioning
const xPostionOffset = 100;
return {
x: Math.round(position.x + xPostionOffset),