From 1d0149d770380c4cf256e7194762db1ec59c628e Mon Sep 17 00:00:00 2001 From: wjrHh218 <2084945328@qq.com> Date: Thu, 5 Feb 2026 23:48:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E6=8A=BD=E4=B8=AD=E5=8D=A1=E7=89=87=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/Cargo.lock | 2 +- src/hooks/useElement/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 157616c..3bfd303 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -77,7 +77,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app" -version = "0.6.0-1" +version = "0.6.0-2" dependencies = [ "log", "serde", diff --git a/src/hooks/useElement/index.ts b/src/hooks/useElement/index.ts index 16e6da6..ba42343 100644 --- a/src/hooks/useElement/index.ts +++ b/src/hooks/useElement/index.ts @@ -322,7 +322,7 @@ export function useElementPosition( // 修改此处逻辑,确保当length=2时,两行围绕中心点对称分布 centerPosition.y = windowSize.height / 2 - totalHeight / 2 - yTable = centerPosition.y + currentRow * verticalSpacing + centerYOffset + scaledCardHeight / 2 // 添加卡片高度的一半作为修正 + yTable = centerPosition.y + currentRow * verticalSpacing + centerYOffset // 添加卡片高度的一半作为修正 // 计算当前行的水平居中偏移 const horizontalSpacing = scaledCardWidth * 1.2 // 水平间距基于缩放后的宽度 const rowWidth = (cardsInCurrentRow - 1) * horizontalSpacing