From 9674c68d11d80eb0d8abbcec7a80481928b28f56 Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 25 Oct 2024 15:05:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/components/side.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/views/tool/components/side.vue b/src/renderer/src/views/tool/components/side.vue index 29083db..957f430 100644 --- a/src/renderer/src/views/tool/components/side.vue +++ b/src/renderer/src/views/tool/components/side.vue @@ -73,9 +73,8 @@ const list = computed(() => props.data.map((o,i) => { })) onMounted(() => { posBtnAll = btnRef.value.getBoundingClientRect() - hPost.value = posBtnAll.height - - curNode = sessionStore.get('subject.curNode') + hPost.value = Math.round(posBtnAll.height) + curNode = sessionStore?.get?.('subject.curNode') }) // === 方法 === // 获取颜色索引 @@ -97,7 +96,7 @@ const clickHandel = (o, e) => { isVisible.value = !isColse // 相同的按钮且打开状态,点击关闭 activeObj.value = o const nodeH = parseInt(node.height / 2) // 高度的一半 - topPos.value = parseInt(node.top) - posBtnAll.top + nodeH + topPos.value = Math.round(parseInt(node.top) - posBtnAll.top + nodeH) } emit('change', o) } @@ -149,8 +148,8 @@ const closeActive = () =>{ --top: 30px; --height: 40vh; position: fixed; - inset: 50% 75px auto auto; - transform: translateY(-50%); + inset: 0 75px auto auto; + // transform: translateY(-50%); background-color: #121212; padding: 10px; border-radius: 4px; From 8b55ebffa55ce0be14fe649c350e1d66d63f50b4 Mon Sep 17 00:00:00 2001 From: zdg Date: Fri, 25 Oct 2024 15:28:54 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ppt=E7=82=B9=E8=B5=9E=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/views/tool/components/upvote.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/src/views/tool/components/upvote.vue b/src/renderer/src/views/tool/components/upvote.vue index 91c1fcc..317e270 100644 --- a/src/renderer/src/views/tool/components/upvote.vue +++ b/src/renderer/src/views/tool/components/upvote.vue @@ -1,6 +1,6 @@