fix: header 2 lignes + aperçu utilise /raw + corrige regex newline
CI / lint (push) Successful in 12s
CI / security (push) Successful in 8s
CI / test (push) Successful in 16s
CI / build (push) Successful in 2s

This commit is contained in:
2026-05-29 23:30:06 -04:00
parent 3de990cf7d
commit 2a74503bed
2 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -653,8 +653,8 @@ export const GraphViewManager = {
// Show loading indicator
this._showPreviewTooltip(node, 'Chargement...', screenX, screenY);
try {
const data = await api(`/api/file/${encodeURIComponent(this._vault)}?path=${encodeURIComponent(node.path)}`);
const content = (data.content || '').substring(0, 400).replace(/\\n/g, ' ');
const data = await api(`/api/file/${encodeURIComponent(this._vault)}/raw?path=${encodeURIComponent(node.path)}`);
const content = (data.raw || '').substring(0, 400).replace(/\n/g, ' ');
this._previewCache[cacheKey] = content;
this._showPreviewTooltip(node, content, screenX, screenY);
} catch {