mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-08 10:56:36 +00:00
Refactor CSS styles and ZenWorkspaces logic for improved UI consistency and functionality
This commit is contained in:
@@ -364,7 +364,7 @@ menuitem {
|
|||||||
color: var(--button-primary-color);
|
color: var(--button-primary-color);
|
||||||
box-shadow: var(--zen-big-shadow);
|
box-shadow: var(--zen-big-shadow);
|
||||||
display: flex;
|
display: flex;
|
||||||
font-weight: 600;
|
font-weight: 500;
|
||||||
gap: 5px;
|
gap: 5px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
|
@@ -142,6 +142,10 @@
|
|||||||
visibility: collapse;
|
visibility: collapse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#identity-icon-label {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#urlbar[open]
|
#urlbar[open]
|
||||||
:is(#tracking-protection-icon-container, .urlbar-page-action, .identity-box-button):not([hidden='true']):not(
|
:is(#tracking-protection-icon-container, .urlbar-page-action, .identity-box-button):not([hidden='true']):not(
|
||||||
#identity-permission-box
|
#identity-permission-box
|
||||||
|
@@ -496,6 +496,7 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -601,8 +601,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
this.selectEmptyTab();
|
this.selectEmptyTab();
|
||||||
showed = true;
|
showed = true;
|
||||||
} else {
|
} else {
|
||||||
const currentTabUrl = currentTab.linkedBrowser?.currentURI.spec;
|
if (currentTab.isEmpty) {
|
||||||
if (currentTabUrl === 'about:newtab' || currentTabUrl === 'about:home') {
|
|
||||||
this.selectEmptyTab();
|
this.selectEmptyTab();
|
||||||
gBrowser.removeTab(currentTab);
|
gBrowser.removeTab(currentTab);
|
||||||
showed = true;
|
showed = true;
|
||||||
|
Reference in New Issue
Block a user