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:
parent
45c1f78485
commit
4cd8d4e61d
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user