Skip to content

Commit

Permalink
chore: followup bug 1923052 - Show private browsing indicator icon in…
Browse files Browse the repository at this point in the history
… navbar when vertical tabs are enabled
  • Loading branch information
onemen committed Nov 2, 2024
1 parent 59d70d0 commit e572328
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 0 additions & 8 deletions addon/chrome/content/overlay/multirow.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,6 @@
--private-browsing-indicator-margin-top: 9px;
}

#TabsToolbar[tabmix-multibar] #private-browsing-indicator-with-label {
align-items: flex-start;
margin-top: var(--private-browsing-indicator-margin-top, 12px);
}

#TabsToolbar[tabmix-multibar] #private-browsing-indicator-with-label > image {
margin-top: 2px;
}

:root:not([uidensity=compact]) #TabsToolbar[tabmix-multibar] .toolbarbutton-1:not([id="tabs-newtab-button"]) {
margin-top: var(--tabmix-button-margin-top-proton) !important;
Expand Down
14 changes: 14 additions & 0 deletions addon/chrome/content/tab/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -1887,6 +1887,20 @@ window.gTMPprefObserver = {
});
}

const selectorType = Tabmix.isVersion(1340) ? "." : "#";
this.insertRule(
`#TabsToolbar[tabmix-multibar] ${selectorType}private-browsing-indicator-with-label {
align-items: flex-start;
margin-top: var(--private-browsing-indicator-margin-top, 12px);
}`
);

this.insertRule(
`#TabsToolbar[tabmix-multibar] ${selectorType}private-browsing-indicator-with-label > image {
margin-top: 2px;
}`
);

this.dynamicProtonRules();
this.toolbarbuttonTopMargin();
},
Expand Down

0 comments on commit e572328

Please sign in to comment.