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.
This commit is contained in:
1 parent
1640784d45
commit
14f46d21fd
4 files changed
+151
-6
No files matched your search
+2
-1
@@ -2603,9 +2603,10 @@ function Shell({
|
||||
{showMainSidebar ? (
|
||||
<aside
|
||||
data-testid="host-sidebar-flow"
|
||||
data-resizing={sidebarDragging || undefined}
|
||||
id="main-sidebar"
|
||||
className={cn(
|
||||
"relative z-20 hidden shrink-0 overflow-hidden lg:block",
|
||||
"group/sidebar relative z-20 hidden shrink-0 overflow-hidden lg:block",
|
||||
sidebarDragging ? "select-none" : "transition-[width] duration-300 ease-out motion-reduce:transition-none",
|
||||
)}
|
||||
style={{
|
||||
|
||||
Reference in new issue
Block a user