Hide workspace indicator icon when no icon is present

This commit is contained in:
mr. M
2024-11-10 17:50:49 +01:00
parent 282c3fab8c
commit dc4f8c6c98
2 changed files with 7 additions and 3 deletions

View File

@@ -236,6 +236,10 @@
width: calc(100% - 10px) !important;
}
& #zen-current-workspace-indicator-icon[no-icon='true'] {
display: none;
}
& #zen-workspaces-button {
margin-left: 2px;
margin-right: 2px;

View File

@@ -1125,11 +1125,11 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
const indicatorIcon = document.getElementById('zen-current-workspace-indicator-icon');
if (this.workspaceHasIcon(currentWorkspace)) {
indicatorIcon.textContent = this.getWorkspaceIcon(currentWorkspace);
indicatorIcon.removeAttribute('hidden');
indicatorIcon.removeAttribute('no-icon');
} else {
indicatorIcon.setAttribute('hidden', 'true');
indicatorIcon.setAttribute('no-icon', 'true');
}
indicatorIcon.textContent = this.getWorkspaceIcon(currentWorkspace);
indicatorName.textContent = currentWorkspace.name;
}