fix: Explorer-Fenster wachsen mit der Bildschirmbreite

- Maximierte Fenster nutzen 100 % des Arbeitsbereichs statt einer beim Rendern
  festgeschriebenen Pixelbreite und folgen so Browser-Resizes.
- Neue Explorer-Fenster nutzen den verfügbaren Platz; 900x540 bleibt Minimum.
- Paket 2026.11.21.r002.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mikei386andClaude Opus 5.5 committed 2026-11-21 12:49:39 +01:00
1 parent 017ed6489a
commit 0bf6eae6d8
4 files changed
+13 -9

No files matched your search

+1 -1
View File
@@ -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"
Binary file not shown.
+10 -6
View File
@@ -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));
+2 -2
View File
@@ -1,7 +1,7 @@
<!DOCTYPE PLUGIN [
<!ENTITY name "u-navigator">
<!ENTITY author "Michael Roll">
<!ENTITY version "2026.11.21.r001">
<!ENTITY version "2026.11.21.r002">
<!ENTITY package "&name;-&version;.tgz">
<!ENTITY pluginURL "https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/u-navigator.plg">
<!ENTITY support "https://git.casaderoll.de/michael/Unraid-Navigator">
@@ -24,7 +24,7 @@
<FILE Name="/boot/config/plugins/&name;/&package;">
<URL>https://git.casaderoll.de/michael/Unraid-Navigator/raw/branch/main/packages/&package;</URL>
<MD5>c80bc2fddc79f1fd954f856809f877f8</MD5>
<MD5>ba916d6b6ea5a07af6d28dac4533f49f</MD5>
</FILE>
<FILE Run="/bin/bash">