From 872a066358e50462ee64680bf7e21d4032f07f3e Mon Sep 17 00:00:00 2001 From: "Anthony Fu (via agent)" Date: Fri, 14 Aug 2026 05:32:41 +0000 Subject: [PATCH] fix(hub-ui): observe dock sidebar size in the popup's own realm Port of vitejs/devtools#521. In popup dock mode the sidebar's ResizeObserver was bound implicitly to the host window via useElementBounding, so resizing the popup didn't update the group rail (collapsing into the overflow "more" icon, or restoring hidden icons) until the mouse moved back into the host page. Bind the observer through the sidebar element's own document/window instead. Co-authored-by: SaKaNa-Y <185575200+SaKaNa-Y@users.noreply.github.com> --- .../components/dock/DockGroupSidebar.vue | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue b/packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue index 0a842a68..fae3f7ff 100644 --- a/packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue +++ b/packages/hub-ui/src/client/components/dock/DockGroupSidebar.vue @@ -1,8 +1,8 @@