diff --git a/build-plugin.sh b/build-plugin.sh index 4bab41f..4914500 100755 --- a/build-plugin.sh +++ b/build-plugin.sh @@ -2,7 +2,7 @@ set -eu PLUGIN="u-navigator" -VERSION="0.2.4" +VERSION="0.2.5" PKG_DIR="packages" WORK_DIR=".plugin-build" PKG_NAME="${PLUGIN}-${VERSION}.tgz" diff --git a/packages/u-navigator-0.2.4.tgz b/packages/u-navigator-0.2.4.tgz deleted file mode 100644 index 0794410..0000000 Binary files a/packages/u-navigator-0.2.4.tgz and /dev/null differ diff --git a/packages/u-navigator-0.2.5.tgz b/packages/u-navigator-0.2.5.tgz new file mode 100644 index 0000000..24e7ede Binary files /dev/null and b/packages/u-navigator-0.2.5.tgz differ diff --git a/server/public/app.js b/server/public/app.js index 0b420c0..d85116f 100644 --- a/server/public/app.js +++ b/server/public/app.js @@ -151,6 +151,12 @@ function renderWindow(win) { if (win.kind === 'explorer') renderExplorer(body, win); if (win.kind === 'properties') renderProperties(body); if (win.kind === 'queue') renderQueue(body); + body.scrollTop = win.data.scrollTop || 0; + body.scrollLeft = win.data.scrollLeft || 0; + body.addEventListener('scroll', () => { + win.data.scrollTop = body.scrollTop; + win.data.scrollLeft = body.scrollLeft; + }); el.append(titlebar, body); if (!win.maximized) { @@ -249,7 +255,7 @@ function renderFileTable(entries) { } const rows = entries.map((entry) => ` - + ${icons[entry.type] || 'Item'}${escapeHtml(entry.name)} ${entry.type} ${entry.type === 'file' ? formatBytes(entry.size) : ''} diff --git a/u-navigator.plg b/u-navigator.plg index 9de1c91..b3b5353 100644 --- a/u-navigator.plg +++ b/u-navigator.plg @@ -1,7 +1,7 @@ - + ]> @@ -14,7 +14,7 @@ https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package; -5574cd115432aaf1b2b34f77a0f89809 +41311370d7a9df875faf70da6b5a7ded