From 30ecf9f4a30765bfb29d04a64a938e7d24ba3591 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 19 Jul 2026 18:07:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20chat=20=E8=A7=86=E5=9B=BE=20scroll-view?= =?UTF-8?q?=20=E5=88=A0=E9=99=A4=E5=9B=BA=E5=AE=9A=20height=EF=BC=8C?= =?UTF-8?q?=E6=94=B9=E7=94=A8=20flex:=201=20=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E7=9C=9F=E6=9C=BA=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 真机上状态栏/tab 栏/安全区域高度各不相同, 硬编码 calc(100vh - 220rpx) 导致 scroll-view 超出可视区域无法滚动。 --- mini-program/src/pages/main/ScriptView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mini-program/src/pages/main/ScriptView.vue b/mini-program/src/pages/main/ScriptView.vue index b8efc15..7abf41f 100644 --- a/mini-program/src/pages/main/ScriptView.vue +++ b/mini-program/src/pages/main/ScriptView.vue @@ -3543,7 +3543,8 @@ onUnmounted(() => { .chat-scroll { flex: 1; - height: calc(100vh - 220rpx); + /* 删除固定 height,让 flex: 1 自适应剩余空间 */ + /* 真机上设备高度、状态栏、tab 栏各不相同,硬编码 220rpx 会导致滚动失效 */ } .chat-scroll-content {