diff --git a/frontend/index.html b/frontend/index.html index 01532f0..d6cc1b1 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -700,18 +700,20 @@
-
-
- - +
+
+ + - + - + - - Ctrl+survol = aperçu + + Ctrl+survol = aperçu +
+
-
Vue Graphique
+
Vue Graphique
diff --git a/frontend/js/graph.js b/frontend/js/graph.js index 75eef68..cb465a2 100644 --- a/frontend/js/graph.js +++ b/frontend/js/graph.js @@ -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 {