From 14f46d21fdaabab76621808d9fb100e0eae35da0 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Fri, 11 Sep 2026 19:36:57 +0800 Subject: [PATCH] fix(webui): preserve sidebar highlight easing during resize Coalesce highlight measurements per animation frame and stop animating the measured action width during a drag. This keeps navigation and session highlights moving toward the current sidebar width with the same easing instead of lagging until the drag stops. Cover target refs, selector targets, frame cleanup, and all drag termination paths. --- webui/src/App.tsx | 3 +- .../components/SidebarSelectionHighlight.tsx | 26 ++++-- webui/src/tests/app-layout.test.tsx | 41 +++++++++ .../sidebar-selection-highlight.test.tsx | 87 +++++++++++++++++++ 4 files changed, 151 insertions(+), 6 deletions(-) create mode 100644 webui/src/tests/sidebar-selection-highlight.test.tsx diff --git a/webui/src/App.tsx b/webui/src/App.tsx index 9f73fbd57..a4f92c8f0 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -2603,9 +2603,10 @@ function Shell({ {showMainSidebar ? (