From 978d45fea869542b3da6807723f9a363e23e6d55 Mon Sep 17 00:00:00 2001 From: matei jordache Date: Mon, 30 Mar 2026 23:18:57 -0700 Subject: [PATCH] help marker functional --- frontend/src/CustomNode.jsx | 6 +++--- frontend/src/styles.css | 18 ++++++++++++------ frontend/vite.config.js | 1 + 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/frontend/src/CustomNode.jsx b/frontend/src/CustomNode.jsx index 1305a84..bbed599 100644 --- a/frontend/src/CustomNode.jsx +++ b/frontend/src/CustomNode.jsx @@ -1223,11 +1223,11 @@ function CustomNode({ id, data }) {
{/* Title */}
- {data.label} -
- {headerMeta && {headerMeta}} +
+ {data.label}
+ {headerMeta && {headerMeta}}
diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 9e218ad..3121631 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -419,6 +419,18 @@ html, body, #root { .node-title-main { min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.node-title-left { + display: flex; + align-items: center; + gap: 4px; + min-width: 0; + overflow: hidden; + flex-shrink: 1; } .node-title-meta { @@ -435,12 +447,6 @@ html, body, #root { text-overflow: ellipsis; } -.node-title-right { - display: flex; - align-items: center; - gap: 5px; - flex-shrink: 0; -} .node-help-btn { width: 15px; diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 1fa9257..0bd43f4 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -12,6 +12,7 @@ export default defineConfig({ port: 5173, proxy: { '/nodes': 'http://127.0.0.1:8188', + '/docs': 'http://127.0.0.1:8188', '/files': 'http://127.0.0.1:8188', '/folder-files': 'http://127.0.0.1:8188', '/channels': 'http://127.0.0.1:8188',