Skip to content

Commit 42e8aa7

Browse files
committed
Reduced unused styles injected by js
1 parent e875a34 commit 42e8aa7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

buttons-init.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,15 @@ window.MaxExtensionButtonsInit.createInlineProfileSelector = async function () {
225225
container.style.alignItems = 'center';
226226
container.style.gap = '4px';
227227
container.style.marginRight = '8px';
228-
229228
const label = document.createElement('span');
230229
label.textContent = ''; // Could be text like "Profile: " - no text for compactness
231230
label.style.fontSize = '12px';
232231
// Don't hardcode color - let it inherit from theme
233-
234232
const select = document.createElement('select');
235233
select.title = 'Switch active profile';
236234
select.style.padding = '2px 16px 2px 4px'; // Add padding on right for arrow
237235
select.style.zIndex = '100000';
238236
select.style.appearance = 'auto'; // Ensure dropdown arrow is visible
239-
select.style.webkitAppearance = 'auto'; // For Safari/Chrome
240-
select.style.mozAppearance = 'auto'; // For Firefox
241237
select.style.backgroundImage = 'url("data:image/svg+xml;utf8,<svg fill=\'%23666\' height=\'24\' viewBox=\'0 0 24 24\' width=\'24\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M7 10l5 5 5-5z\'/></svg>")';
242238
select.style.backgroundRepeat = 'no-repeat';
243239
select.style.backgroundPosition = 'right 2px center';

0 commit comments

Comments
 (0)