Fix: Grid-Template für 7 Spalten (4 Panels + 3 Handles)
Grid hatte nur 4 Spalten-Werte für 7 Kinder — Handles wurden in die nächste Zeile umgebrochen. Jetzt korrekt: panel 3px panel 3px ... Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
56c967b618
commit
92353e2852
1 changed files with 7 additions and 1 deletions
|
|
@ -32,7 +32,13 @@
|
||||||
let startWidths: number[] = [];
|
let startWidths: number[] = [];
|
||||||
|
|
||||||
function getGridTemplate(): string {
|
function getGridTemplate(): string {
|
||||||
return panelWidths.map(w => `${w}px`).join(' ');
|
// 4 Panels + 3 Handles dazwischen: panel handle panel handle panel handle panel
|
||||||
|
return panelWidths.map((w, i) => {
|
||||||
|
if (i < panelWidths.length - 1) {
|
||||||
|
return `${w}px 3px`;
|
||||||
|
}
|
||||||
|
return `${w}px`;
|
||||||
|
}).join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMouseDown(index: number, event: MouseEvent) {
|
function onMouseDown(index: number, event: MouseEvent) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue