diff --git a/web/src/components/business/NodeSwitcher.tsx b/web/src/components/business/NodeSwitcher.tsx index f41ed7a..969b723 100644 --- a/web/src/components/business/NodeSwitcher.tsx +++ b/web/src/components/business/NodeSwitcher.tsx @@ -96,7 +96,7 @@ export function NodeSwitcher() { setMenuStyle({ position: 'fixed', left: rect.left, - width: Math.max(rect.width, 140), + width: rect.width, // 菜单宽度和按钮一致 zIndex: 80, ...(openUp ? { bottom: viewportH - rect.top + 6, top: 'auto' } @@ -148,21 +148,24 @@ export function NodeSwitcher() { const currentLabel = allOptions.find((o) => o.value === selected)?.label || '本机节点' return ( -
+
{open &&