fix: 🐛 混合模式,tag-menu 的 y 轴坐标需要减去顶部菜单(fixed)的高度50px

Former-commit-id: 3e5848f66919ee4c8e31378128ce356930ff7a03
This commit is contained in:
hxr
2023-10-06 08:29:29 +08:00
parent 9ab5a6223e
commit 8568985a09

View File

@@ -220,7 +220,13 @@ function openTagMenu(tag: TagView, e: MouseEvent) {
left.value = l;
}
top.value = e.clientY;
// 混合模式下,需要减去顶部菜单(fixed)的高度
if (layout.value === "mix") {
top.value = e.clientY - 50;
} else {
top.value = e.clientY;
}
tagMenuVisible.value = true;
selectedTag.value = tag;
}