diff --git a/dev/theme-builder/index.html b/dev/theme-builder/index.html index 5694a61..801b14d 100644 --- a/dev/theme-builder/index.html +++ b/dev/theme-builder/index.html @@ -1226,9 +1226,10 @@ function renderLayerEditor(l){ tip.className = 'hint'; if (over.length){ tip.style.color = '#e0a33e'; - tip.textContent = `⚠ ${vp.w}×${vp.h}:${over.join(' / ')} 越界(显示 ${m.w}×${m.h})`; + tip.textContent = `⚠ ${vp.w}×${vp.h}:${over.join(' / ')} 越界`; } else { - tip.textContent = `${vp.w}×${vp.h} 下显示 ${m.w}×${m.h},完整可见(源 ${a0.w}×${a0.h})`; + // 一律取整:131.25 这种小数在窄面板里既占位置又没意义 + tip.textContent = `${vp.w}×${vp.h} 下显示 ${Math.round(m.w)}×${Math.round(m.h)},完整可见`; } box.appendChild(tip); if (over.length){