fix: bookmarks/récents utilisent TabManager + drag-to-split corrigé
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 15s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Failing after 10s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Successful in 15s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
Bug 1 — bookmarks/récents sans tab: dashboard.js:135: openFile() → TabManager.openPreview() _createCard() est partagé par DashboardRecentWidget ET DashboardBookmarkWidget Bug 2 — drag-to-split bloqué en single-pane: La condition 'if (dragData.paneId === paneId) return' empêchait le split car en single-pane, le drag part du pane 0 et drop sur le pane 0. → Supprimé. Edge detection vérifiée avant, cross-pane vérifié après. Même pane + pas edge → laissé au tab handler (reorder).
This commit is contained in:
@@ -330,9 +330,9 @@ const DashboardRecentWidget = {
|
||||
|
||||
card.appendChild(footer);
|
||||
|
||||
// Click handler
|
||||
// Click handler — open in tab system (not raw openFile)
|
||||
card.addEventListener("click", () => {
|
||||
openFile(file.vault, file.path);
|
||||
TabManager.openPreview(file.vault, file.path);
|
||||
});
|
||||
|
||||
return card;
|
||||
|
||||
Reference in New Issue
Block a user