调整 FileBrowser 组件的样式,修正外层 DIV 和文件列表的高度计算

This commit is contained in:
jxxghp
2025-03-31 14:26:45 +08:00
parent 7b171e2c6f
commit d7fbbd2d28

View File

@@ -174,14 +174,14 @@ function fileListUpdated(items: FileItem[]) {
// 外层DIV大小控制
const scrollStyle = computed(() => {
return appMode
? 'height: calc(100vh - 11.5rem - env(safe-area-inset-bottom) - 3.5rem)'
? 'height: calc(100vh - 12rem - env(safe-area-inset-bottom) - 3.5rem)'
: 'height: calc(100vh - 10.5rem - env(safe-area-inset-bottom)'
})
// 文件列表大小限制
const fileListStyle = computed(() => {
return appMode
? 'height: calc(100vh - 15.5rem - env(safe-area-inset-bottom) - 3.5rem)'
? 'height: calc(100vh - 16rem - env(safe-area-inset-bottom) - 3.5rem)'
: 'height: calc(100vh - 14.5rem - env(safe-area-inset-bottom)'
})
</script>