From bcab4096b05b4e91674955c50b3fa199ffcee6df Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Sun, 4 May 2025 10:24:43 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BC=98=E5=8C=96=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E5=B8=83=E5=B1=80=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/views/WorkspaceView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/views/WorkspaceView.vue b/packages/frontend/src/views/WorkspaceView.vue index d315eee..070016d 100644 --- a/packages/frontend/src/views/WorkspaceView.vue +++ b/packages/frontend/src/views/WorkspaceView.vue @@ -658,7 +658,7 @@ const toggleVirtualKeyboard = () => { display: flex; background-color: transparent; flex-direction: column; - height: 100vh; /* 默认占据整个视口高度 */ + height: 100dvh; /* 使用动态视口高度 */ overflow: hidden; transition: height 0.3s ease; /* 可选:添加过渡效果 */ } @@ -666,7 +666,7 @@ const toggleVirtualKeyboard = () => { /* 当 Header 可见时,调整高度 */ .workspace-view.with-header { /* 假设 Header 高度为 55px (根据 App.vue CSS) */ - height: calc(100vh - 55px); + height: calc(100dvh - 55px); /* 使用动态视口高度计算 */ } .main-content-area {