From e8f0ec5bb3ed28951cfa0a6710f5323e8be5efc3 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Wed, 27 Aug 2025 06:17:13 -0700 Subject: [PATCH] [fix] Correct WhatsNew popup arrow alignment with help center icon (#5137) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix] Correct WhatsNew popup arrow alignment with help center icon The arrow positioning was not accounting for additional sidebar icons (terminal and shortcuts) that were added below the help center icon, causing misalignment. Updated the calculation to properly position the arrow relative to the help center icon's current location. Fixes #5126 * [fix] Update small sidebar arrow positioning and improve center alignment - Fixed small sidebar rule to use consistent calculation with normal sidebar - Updated positioning to use half icon height for better center alignment - Both normal and small sidebar now use dynamic CSS variable calculations Addresses feedback from review by viva-jinyi on CSS specificity and positioning accuracy. * [fix] Make sidebar CSS variables global for teleported components - Move --sidebar-width CSS variable to :root to make it accessible globally - This allows teleported components like WhatsNewPopup to reference sidebar dimensions - Adjust arrow positioning calculations for better alignment with help center icon - Add explanatory comments about why these variables need to be global 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude * fix: icon-size should be variable --------- Co-authored-by: Jin Yi Co-authored-by: Claude --- src/components/helpcenter/WhatsNewPopup.vue | 15 +++++++++------ src/components/sidebar/SideToolbar.vue | 19 ++++++++++++++++--- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/components/helpcenter/WhatsNewPopup.vue b/src/components/helpcenter/WhatsNewPopup.vue index 26d1dc8a0..a1b12bc5b 100644 --- a/src/components/helpcenter/WhatsNewPopup.vue +++ b/src/components/helpcenter/WhatsNewPopup.vue @@ -136,8 +136,6 @@ const closePopup = async () => { hide() } -// Learn more handled by anchor href - // const handleCTA = async () => { // window.open('https://docs.comfy.org/installation/update_comfyui', '_blank') // await closePopup() @@ -161,8 +159,10 @@ defineExpose({ +