From 2a74503bed76218020f94f7831713282d1d1a7ca Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 23:30:06 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20header=202=20lignes=20+=20aper=C3=A7u=20?= =?UTF-8?q?utilise=20/raw=20+=20corrige=20regex=20newline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/index.html | 20 +++++++++++--------- frontend/js/graph.js | 4 ++-- 2 files changed, 13 insertions(+), 11 deletions(-) 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 {