mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-25 21:51:30 +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(
|
private async checkIsInlineMenuButtonVisible(
|
||||||
sender: chrome.runtime.MessageSender,
|
sender: chrome.runtime.MessageSender,
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
return await BrowserApi.tabSendMessage(
|
const isVisible = !!(await BrowserApi.tabSendMessage(
|
||||||
sender.tab,
|
sender.tab,
|
||||||
{ command: "checkIsAutofillInlineMenuButtonVisible" },
|
{ command: "checkIsAutofillInlineMenuButtonVisible" },
|
||||||
{ frameId: 0 },
|
{ 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