Skip to content

Commit 6e622fc

Browse files
committed
fix: Position menu above its parent element instead of below.
1 parent 08eccaf commit 6e622fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

buttons-init-and-render.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ window.MaxExtensionButtonsInit = {
166166
// Special handling for the settings button.
167167
const settingsButtonConfig = { ...def.config, text: 'Settings', tooltip: 'Open extension settings in a new tab' };
168168
const settingsClickHandler = () => {
169-
// Send a message to the service worker to open the settings page.
170-
// This avoids the popup blocker (ERR_BLOCKED_BY_CLIENT).
171-
chrome.runtime.sendMessage({ type: 'openSettingsPage' });
169+
// Send a message to the service worker to open the settings page.
170+
// This avoids the popup blocker (ERR_BLOCKED_BY_CLIENT).
171+
chrome.runtime.sendMessage({ type: 'openSettingsPage' });
172172
};
173173
buttonElement = MaxExtensionButtons.createCustomSendButton(settingsButtonConfig, index, settingsClickHandler, shortcutKey);
174174
} else {
@@ -214,7 +214,7 @@ window.MaxExtensionButtonsInit = {
214214
if (dups.length > 1) {
215215
const [keep, ...extras] = dups;
216216
extras.forEach(el => {
217-
try { el.remove(); } catch (_) {}
217+
try { el.remove(); } catch (_) { }
218218
});
219219
existingContainer = keep;
220220
logConCgp(`[init] Detected and removed ${extras.length} duplicate container(s) with id ${containerId}.`);
@@ -516,7 +516,7 @@ window.MaxExtensionButtonsInit.createUnifiedProfileSelector = function (containe
516516
const menu = document.createElement('div');
517517
menu.style.cssText = `
518518
position: absolute;
519-
top: calc(100% + 4px);
519+
bottom: calc(100% + 4px);
520520
left: 0;
521521
min-width: 180px;
522522
display: none;

0 commit comments

Comments
 (0)