From ae540be597b76e9006ec4cf71c107f56528c8a96 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 28 May 2025 17:32:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96log=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/dashboard/templates/wx_logs.html | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/admin/dashboard/templates/wx_logs.html b/admin/dashboard/templates/wx_logs.html index c0e970e..fed422a 100644 --- a/admin/dashboard/templates/wx_logs.html +++ b/admin/dashboard/templates/wx_logs.html @@ -74,6 +74,7 @@ const logDiv = this.$el.querySelector('.log-content'); if (logDiv) { logDiv.scrollTop = logDiv.scrollHeight; + console.log('log-content scrollHeight:', logDiv.scrollHeight, 'clientHeight:', logDiv.clientHeight); } }); } else { @@ -118,23 +119,32 @@ display: flex; flex-direction: column; margin: 0; + height: 100%; + } + + .el-card__body { + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; } .log-content-wrapper { flex: 1; - overflow: hidden; display: flex; flex-direction: column; + overflow: hidden; } .log-content { flex: 1; - overflow-y: auto; - overflow-x: auto; + overflow-y: auto !important; + overflow-x: auto !important; background-color: #f5f5f5; padding: 10px; border-radius: 4px; box-sizing: border-box; + min-height: 0; } .log-content pre { @@ -142,6 +152,7 @@ white-space: pre-wrap; word-break: break-all; font-family: monospace; + line-height: 1.5; } .empty-log { @@ -149,16 +160,7 @@ display: flex; align-items: center; justify-content: center; - } - - .el-card { - height: 100% !important; - } - - .el-card__body { - flex: 1; - display: flex; - flex-direction: column; + overflow: hidden; } {% endblock %} \ No newline at end of file