Skip to content

Commit c9488c0

Browse files
committed
fix: Fixed aligment issues and renaming workspaces, b=no-bug, c=common, workspaces
1 parent bcf879b commit c9488c0

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/zen/common/ZenUIManager.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ var gZenVerticalTabsManager = {
10941094
this._tabEdited = null;
10951095
return;
10961096
}
1097-
event.stopPropagation();
1097+
event.stopPropagation?.();
10981098
document.documentElement.setAttribute('zen-renaming-tab', 'true');
10991099
const label = isTab ? this._tabEdited.querySelector('.tab-label-container') : this._tabEdited;
11001100
label.classList.add('tab-label-container-editing');

src/zen/common/styles/zen-single-components.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ body > #confetti {
5555
display: none;
5656
}
5757

58+
#PanelUI-zen-emojis-picker-search {
59+
padding: 4px;
60+
}
61+
5862
#PanelUI-zen-emojis-picker-list {
5963
flex-wrap: wrap;
6064
max-height: 265px;
@@ -63,9 +67,11 @@ body > #confetti {
6367

6468
gap: 5px;
6569
display: grid;
66-
grid-template-columns: repeat(auto-fill, minmax(22px, 1fr));
70+
grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
6771

6872
.zen-emojis-picker-emoji {
73+
appearance: none;
74+
font-size: 14px;
6975
& image {
7076
display: none;
7177
}

src/zen/common/zen-sets.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ document.addEventListener(
9292
gZenWorkspaces.contextDeleteWorkspace(event);
9393
break;
9494
case 'cmd_zenChangeWorkspaceName':
95-
gZenVerticalTabsManager.renameTabStart(event);
95+
gZenVerticalTabsManager.renameTabStart({
96+
target: gZenWorkspaces.activeWorkspaceIndicator.querySelector(
97+
'.zen-current-workspace-indicator-name'
98+
),
99+
});
96100
break;
97101
case 'cmd_zenChangeWorkspaceIcon':
98102
gZenWorkspaces.changeWorkspaceIcon();

src/zen/workspaces/zen-workspaces.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@
340340

341341
/* Mark workspaces indicator */
342342
.zen-current-workspace-indicator {
343-
padding: calc(4px + var(--tab-inline-padding) + var(--zen-toolbox-padding));
343+
padding: calc(2px + var(--tab-inline-padding) + var(--zen-toolbox-padding));
344344
font-weight: 600;
345345
position: relative;
346346
max-height: var(--zen-workspace-indicator-height);

0 commit comments

Comments
 (0)