1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-24 21:41:33 +01:00

[PM-5189] Fixing issues found within code review behind how we position elements

This commit is contained in:
Cesar Gonzalez 2024-06-25 04:22:15 -05:00
parent 45c1f78485
commit 4cd8d4e61d
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF

View File

@ -1097,11 +1097,21 @@ export class OverlayBackground implements OverlayBackgroundInterface {
private async checkIsInlineMenuButtonVisible(
sender: chrome.runtime.MessageSender,
): Promise<boolean> {
return await BrowserApi.tabSendMessage(
const isVisible = !!(await BrowserApi.tabSendMessage(
sender.tab,
{ command: "checkIsAutofillInlineMenuButtonVisible" },
{ frameId: 0 },
);
));
// If the element is visible in the DOM, ensure that it is not hidden by CSS.
if (isVisible) {
void this.toggleInlineMenuHidden(
{ isInlineMenuHidden: false, setTransparentInlineMenu: false },
sender,
);
}
return isVisible;
}
/**