fix: Fix more button overflow screen issues (#11605)

This commit is contained in:
蘭
2026-01-09 11:17:26 +08:00
committed by GitHub
parent d29f0c6c31
commit 2fcab77565
@@ -1940,18 +1940,18 @@ const checkFFmpeg = () => {
const updateHeight = () => {
const el = fileTableRef.value;
if (!el) return;
let tabHeight = globalStore.openMenuTabs ? 40 : 0;
let tabHeight = globalStore.openMenuTabs ? 40 : -4;
const half = (el.offsetHeight + tabHeight) / 2;
dropdownMaxHeight.value = Math.max(half, 300);
};
onMounted(async () => {
await loadPath();
await nextTick();
watchTitleHeight();
window.addEventListener('resize', watchTitleHeight);
updateHeight();
window.addEventListener('resize', updateHeight);
await loadPath();
initShowHidden();
initTabsAndPaths();
await getHostMount();