From 14fc83bfff7a87cb36f8e56437b2a3050ddda5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Thu, 5 Jun 2025 14:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=AE=B0=E5=BD=95=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Main/CoderDepot.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index a7e6ac239..61cc23106 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -242,7 +242,11 @@ function CoderDepot(props){ let ele = document.getElementById("ptxt"); if(ele){ let h = ele.offsetHeight; - if( h <= 36 ) setHideBtn(false); + if( h <= 36 ) { + setHideBtn(false); + } else { + setHideBtn(true) + } } } },[projectDetail,lastCommit]) @@ -589,7 +593,7 @@ function CoderDepot(props){ { lastCommit.message &&
-
+

{lastCommit.message}

} { hideBtn && __CLIENT__ &&
changeHide(hide)}>
}