From e7e4c5a452289a62df45462ec1bc88f8a86760e6 Mon Sep 17 00:00:00 2001 From: "mr. m" <91018726+mr-cheffy@users.noreply.github.com> Date: Sat, 6 Jun 2026 17:34:43 +0200 Subject: [PATCH] gh-14045: Fixed sidebar notifications overflowing text (gh-14047) --- src/zen/common/styles/zen-sidebar-notification.css | 8 +++++++- src/zen/spaces/ZenSpaceManager.mjs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zen/common/styles/zen-sidebar-notification.css b/src/zen/common/styles/zen-sidebar-notification.css index fdddbe549..b80f94e9b 100644 --- a/src/zen/common/styles/zen-sidebar-notification.css +++ b/src/zen/common/styles/zen-sidebar-notification.css @@ -27,7 +27,7 @@ display: flex; position: relative; flex: 1; - padding: 8px; + padding: 16px; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); } @@ -38,6 +38,12 @@ white-space: nowrap; font-weight: 500; flex: 1; + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + width: calc(100% - 40px); + padding: 0 16px; } .zen-sidebar-notification-close-button { diff --git a/src/zen/spaces/ZenSpaceManager.mjs b/src/zen/spaces/ZenSpaceManager.mjs index 67d29725f..b75733b81 100644 --- a/src/zen/spaces/ZenSpaceManager.mjs +++ b/src/zen/spaces/ZenSpaceManager.mjs @@ -955,7 +955,7 @@ class nsZenWorkspaces { } gZenEmojiPicker.open(anchor, { closeOnSelect: false, - allowNone: hasNoIcon, + allowNone: !hasNoIcon, onSelect: async icon => { const workspace = this.getWorkspaceFromId(workspaceId); if (!workspace) {