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:
parent
fa60ade2fc
commit
e16a9c720a
1 changed files with 3 additions and 2 deletions
|
|
@ -30,10 +30,11 @@
|
|||
|
||||
function applyWidths() {
|
||||
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) => {
|
||||
if (i < panelWidths.length - 1) return `${w}px 8px`;
|
||||
return `${w}px`;
|
||||
return `minmax(${w}px, 1fr)`;
|
||||
}).join(' ');
|
||||
gridEl.style.gridTemplateColumns = cols;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue