From 1d7b9a1453628229618ab92ee6cb56bb532000c4 Mon Sep 17 00:00:00 2001 From: stapxs <1007028430.stapx@gmail.com> Date: Fri, 3 Jan 2025 08:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E4=BF=9D=E9=9A=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/function/utils/appUtil.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/function/utils/appUtil.ts b/src/renderer/src/function/utils/appUtil.ts index ac84457..42f0a45 100644 --- a/src/renderer/src/function/utils/appUtil.ts +++ b/src/renderer/src/function/utils/appUtil.ts @@ -472,10 +472,11 @@ export async function loadAppendStyle() { const width = window.innerWidth const height = window.innerHeight if(cssStype) { - if(width > 600) + if(width > 600) { cssStype.innerHTML = (width > height ? horizontalCss : (horizontalCss + verticalCss)) + appendCss - else + } else { cssStype.innerHTML = horizontalCss + verticalCss + appendCss + } } if(runtimeData.tags.isElectron) { @@ -676,11 +677,9 @@ export async function loadMobile() { if(safeArea && tabBar) { tabBar.style.setProperty('padding-bottom', safeArea.bottom + 'px', 'important') } - } else { + } else if (tabBar) { // 调整菜单高度 - if(tabBar) { - tabBar.style.setProperty('padding-bottom', '10px', 'important') - } + tabBar.style.setProperty('padding-bottom', '10px', 'important') } // 调整整个 HTML 的高度