From d367e6a6bd248ffa7d203bc82c217f06ed51361b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8B=E3=81=BF=E3=81=AA=E3=83=BC=E5=85=88=E7=94=9F?= Date: Fri, 29 May 2026 08:43:28 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E3=81=AE=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/checkpoint_handpicker_suite.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/web/checkpoint_handpicker_suite.js b/web/checkpoint_handpicker_suite.js index ae52a62..daa505a 100644 --- a/web/checkpoint_handpicker_suite.js +++ b/web/checkpoint_handpicker_suite.js @@ -227,10 +227,10 @@ function setupPreviewNode(nodeType) { if (this.flags?.collapsed) return; const img = this.__hpsPreview; const isImageDir = isNodeClass(this, "ImageDirPreview"); - const top = isImageDir ? 100 : 30; + const top = isImageDir ? 72 : 30; const margin = 8; - const messageX = isImageDir ? Math.min(120, Math.max(margin, this.size[0] - 80)) : margin; - const captionY = isImageDir ? 82 : top - 6; + const messageX = isImageDir ? Math.min(140, Math.max(margin, this.size[0] - 80)) : 100; + const captionY = isImageDir ? 36 : 20; const messageW = Math.max(1, this.size[0] - messageX - margin); const w = Math.max(1, this.size[0] - margin * 2); const h = Math.max(1, this.size[1] - top - margin); @@ -258,7 +258,9 @@ function setupPreviewNode(nodeType) { ctx.drawImage(img, x, y, dw, dh); } else { ctx.fillStyle = "rgba(255,255,255,0.15)"; - ctx.fillText(this.__hpsPreviewCaption || "no preview", messageX, top + 16, messageW); + //ctx.fillText(this.__hpsPreviewCaption || "no preview", messageX, top + 50, messageW); + ctx.fillText(this.__hpsPreviewCaption || "no preview", this.size[0]/2 -30, this.size[1]/2 +top-50, messageW); + } ctx.restore(); };