Refactor CSS styles and ZenWorkspaces logic for improved UI consistency and functionality

This commit is contained in:
mr. M
2025-02-22 12:35:15 +01:00
parent e246a6cd67
commit 6bcaab91ef
4 changed files with 7 additions and 3 deletions

View File

@@ -364,7 +364,7 @@ menuitem {
color: var(--button-primary-color);
box-shadow: var(--zen-big-shadow);
display: flex;
font-weight: 600;
font-weight: 500;
gap: 5px;
flex-direction: column;
gap: 2px;

View File

@@ -142,6 +142,10 @@
visibility: collapse;
}
#identity-icon-label {
display: none;
}
#urlbar[open]
:is(#tracking-protection-icon-container, .urlbar-page-action, .identity-box-button):not([hidden='true']):not(
#identity-permission-box

View File

@@ -496,6 +496,7 @@
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
}

View File

@@ -601,8 +601,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
this.selectEmptyTab();
showed = true;
} else {
const currentTabUrl = currentTab.linkedBrowser?.currentURI.spec;
if (currentTabUrl === 'about:newtab' || currentTabUrl === 'about:home') {
if (currentTab.isEmpty) {
this.selectEmptyTab();
gBrowser.removeTab(currentTab);
showed = true;