Explorar el Código

perf: 优化标签页右键菜单超出边缘检测功能,确保其始终完整显示在可视区

xiaoxian521 hace 1 año
padre
commit
4c80abfe55
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/layout/components/tag/index.vue

+ 1 - 1
src/layout/components/tag/index.vue

@@ -423,7 +423,7 @@ function openMenu(tag, e) {
   }
 
   currentSelect.value = tag;
-  const menuMinWidth = 105;
+  const menuMinWidth = 140;
   const offsetLeft = unref(containerDom).getBoundingClientRect().left;
   const offsetWidth = unref(containerDom).offsetWidth;
   const maxLeft = offsetWidth - menuMinWidth;