diff --git a/build-plugin.sh b/build-plugin.sh index b1446dc..9538c75 100755 --- a/build-plugin.sh +++ b/build-plugin.sh @@ -5,7 +5,7 @@ set -eu export COPYFILE_DISABLE=1 PLUGIN="u-navigator" -VERSION="2026.11.21.r001" +VERSION="2026.11.21.r002" PKG_DIR="packages" WORK_DIR=".plugin-build" PKG_NAME="${PLUGIN}-${VERSION}.tgz" diff --git a/packages/u-navigator-2026.11.21.r002.tgz b/packages/u-navigator-2026.11.21.r002.tgz new file mode 100644 index 0000000..85bc5ff Binary files /dev/null and b/packages/u-navigator-2026.11.21.r002.tgz differ diff --git a/server/public/app.js b/server/public/app.js index a2e49f1..94945df 100644 --- a/server/public/app.js +++ b/server/public/app.js @@ -115,11 +115,14 @@ function openExplorer(initialPath = state.config?.roots?.[0]?.path) { statusText.textContent = 'Kein Root-Pfad konfiguriert'; return null; } + const x = 24 + state.windows.length * 24; + const y = 20 + state.windows.length * 20; + // Use the available workspace on large screens; 900x540 stays the minimum default. const win = createWindow('Explorer', 'explorer', { - width: 900, - height: 540, - x: 24 + state.windows.length * 24, - y: 20 + state.windows.length * 20, + width: Math.max(900, workspace.clientWidth - x - 24), + height: Math.max(540, workspace.clientHeight - y - 20), + x, + y, data: { path: initialPath, entries: [], @@ -257,8 +260,9 @@ function renderWindow(win) { el.className = `window ${state.focusedId === win.id ? 'focused' : ''} ${win.maximized ? 'maximized' : ''}`; el.style.left = `${win.maximized ? 0 : win.x}px`; el.style.top = `${win.maximized ? 0 : win.y}px`; - el.style.width = `${win.maximized ? workspace.clientWidth : win.width}px`; - el.style.height = `${win.maximized ? workspace.clientHeight : win.height}px`; + // Maximized windows follow the workspace when the browser is resized. + el.style.width = win.maximized ? '100%' : `${win.width}px`; + el.style.height = win.maximized ? '100%' : `${win.height}px`; el.style.zIndex = win.zIndex; el.dataset.windowId = win.id; el.addEventListener('pointerdown', () => focusWindow(win)); diff --git a/u-navigator.plg b/u-navigator.plg index 011713b..ba67459 100644 --- a/u-navigator.plg +++ b/u-navigator.plg @@ -1,7 +1,7 @@ - + @@ -24,7 +24,7 @@ https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package; -c80bc2fddc79f1fd954f856809f877f8 +ba916d6b6ea5a07af6d28dac4533f49f