Skip to content

Commit

Permalink
质量保障
Browse files Browse the repository at this point in the history
  • Loading branch information
Stapxs committed Jan 3, 2025
1 parent 40a0974 commit 1d7b9a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/renderer/src/function/utils/appUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 的高度
Expand Down

0 comments on commit 1d7b9a1

Please sign in to comment.