Fix: Letztes Panel füllt Restbreite (kein toter Bereich rechts)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Eddy 2026-04-13 20:21:39 +02:00
parent fa60ade2fc
commit e16a9c720a

View file

@ -30,10 +30,11 @@
function applyWidths() { function applyWidths() {
if (!gridEl) return; if (!gridEl) return;
// 7 Spalten: panel 8px panel 8px panel 8px panel // 7 Spalten: panel 8px panel 8px panel 8px panel(rest)
// Letztes Panel füllt den verfügbaren Platz
const cols = panelWidths.map((w, i) => { const cols = panelWidths.map((w, i) => {
if (i < panelWidths.length - 1) return `${w}px 8px`; if (i < panelWidths.length - 1) return `${w}px 8px`;
return `${w}px`; return `minmax(${w}px, 1fr)`;
}).join(' '); }).join(' ');
gridEl.style.gridTemplateColumns = cols; gridEl.style.gridTemplateColumns = cols;
} }