mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-26 16:00:55 +00:00
fix: Fix more button overflow screen issues (#11605)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user