From 72030a1793bac1aa7957504c7892cbdb886b0d90 Mon Sep 17 00:00:00 2001 From: Gaubee Date: Sun, 4 Jan 2026 15:57:44 +0800 Subject: [PATCH] fix(wallet-card): restore watermark icon size after diamond pattern change The 2x2 tile requires doubling the logicalSpacing (2->4) to maintain the original icon size. Previous value of 3 caused icons to shrink. --- src/components/wallet/refraction/renderer.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/wallet/refraction/renderer.ts b/src/components/wallet/refraction/renderer.ts index aca50910f..5d3abf242 100644 --- a/src/components/wallet/refraction/renderer.ts +++ b/src/components/wallet/refraction/renderer.ts @@ -254,10 +254,8 @@ function ensureWatermarkCache( const pattern = ctx.createPattern(tile, 'repeat') if (!pattern) return null - // 使用 3 作为逻辑间距: - // 1. 密度适中(比原来的 2 稍稀,视觉更舒适) - // 2. 与纹理层(间距 1)错开,避免视觉重复 - return { key, pattern, logicalSpacing: 3, tileSize } + // 2x2 tile 需要 2 倍的 logicalSpacing 来保持图标原始大小 + return { key, pattern, logicalSpacing: WATERMARK_LOGICAL_SPACING * 2, tileSize } } function renderMaskedLayer(