Bug 1697144 - Fix context line tab for non-proton, and push the line 1px up in proton. r=jaws

Differential Revision: https://phabricator.services.mozilla.com/D107690
This commit is contained in:
Zibi Braniecki 2021-03-09 18:00:46 +00:00
parent e2657b40e2
commit ca10096bc9
2 changed files with 14 additions and 4 deletions

View File

@ -9,13 +9,24 @@
{
class MozTabbrowserTab extends MozElements.MozTab {
static get markup() {
return `
<stack class="tab-stack" flex="1">
let background = gProtonTabs
? `
<vbox class="tab-background">
<hbox class="tab-context-line"/>
<hbox class="tab-line"/>
<spacer flex="1" class="tab-background-inner"/>
</vbox>
`
: `
<vbox class="tab-background">
<hbox class="tab-line"/>
<spacer flex="1" class="tab-background-inner"/>
<hbox class="tab-context-line"/>
</vbox>
`;
return `
<stack class="tab-stack" flex="1">
${background}
<hbox class="tab-loading-burst"/>
<hbox class="tab-content" align="center">
<hbox class="tab-throbber" layer="true"/>

View File

@ -119,8 +119,7 @@
background-color: var(--identity-icon-color);
height: 2px;
border-radius: 2px;
margin-top: -2px;
margin: -2px 2px 0;
margin: -3px 2px 0;
}
} /*** END proton ***/