From 07e0f6f21a29acafcba60648cf2e4be61f46c7ee Mon Sep 17 00:00:00 2001 From: wizardchen Date: Tue, 16 Jun 2026 20:36:43 +0800 Subject: [PATCH] feat(session-sidebar): enhance menu positioning and behavior Refactor the session sidebar menu to use a Teleport component for improved positioning and visibility. Introduce a trigger reference for dynamic menu placement based on viewport dimensions. Update event listeners for menu interactions to ensure proper opening and closing behavior, enhancing user experience. Adjust CSS for fixed positioning and z-index to prevent overlap issues. --- frontend/src/components/SessionSidebarRow.vue | 95 +++++++++++++------ 1 file changed, 67 insertions(+), 28 deletions(-) diff --git a/frontend/src/components/SessionSidebarRow.vue b/frontend/src/components/SessionSidebarRow.vue index fcc0b995..8f534693 100644 --- a/frontend/src/components/SessionSidebarRow.vue +++ b/frontend/src/components/SessionSidebarRow.vue @@ -23,6 +23,7 @@
- + +
+ @@ -132,10 +173,8 @@ onBeforeUnmount(() => { } .session-row-menu { - position: absolute; - top: calc(100% + 4px); - right: 0; - z-index: 30; + position: fixed; + z-index: 3000; min-width: 132px; padding: 4px; border: 1px solid var(--td-component-stroke);