diff --git a/web/src/pages/flow/canvas/node/index.less b/web/src/pages/flow/canvas/node/index.less
index 092dec440..bd42fd3ad 100644
--- a/web/src/pages/flow/canvas/node/index.less
+++ b/web/src/pages/flow/canvas/node/index.less
@@ -1,5 +1,4 @@
.ragNode {
- // height: 50px;
position: relative;
box-shadow:
-6px 0 12px 0 rgba(179, 177, 177, 0.08),
@@ -9,6 +8,16 @@
padding: 5px;
border-radius: 5px;
background: white;
+ width: 100px;
+ height: 100px;
+ border-radius: 50%;
+ display: flex;
+ // align-items: center;
+ // justify-self: center;
+ justify-content: center;
+ .nodeName {
+ font-size: 8px;
+ }
label {
display: block;
color: #777;
@@ -17,6 +26,17 @@
.description {
font-size: 10px;
}
+ .bottomBox {
+ position: absolute;
+ bottom: -24px;
+ background: white;
+ padding: 2px 5px;
+ border-radius: 5px;
+ box-shadow:
+ -6px 0 12px 0 rgba(179, 177, 177, 0.08),
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
+ -6px 0 16px 6px rgba(0, 0, 0, 0.05);
+ }
}
.selectedNode {
border: 1px solid rgb(59, 118, 244);
diff --git a/web/src/pages/flow/canvas/node/index.tsx b/web/src/pages/flow/canvas/node/index.tsx
index 8587fa17d..41d121166 100644
--- a/web/src/pages/flow/canvas/node/index.tsx
+++ b/web/src/pages/flow/canvas/node/index.tsx
@@ -3,7 +3,7 @@ import { Handle, NodeProps, Position } from 'reactflow';
import OperateDropdown from '@/components/operate-dropdown';
import { CopyOutlined } from '@ant-design/icons';
-import { Flex, MenuProps, Space, Typography } from 'antd';
+import { Flex, MenuProps, Space } from 'antd';
import { useCallback } from 'react';
import { useTranslation } from 'react-i18next';
import { Operator, operatorMap } from '../../constant';
@@ -12,8 +12,6 @@ import OperatorIcon from '../../operator-icon';
import useGraphStore from '../../store';
import styles from './index.less';
-const { Text } = Typography;
-
export function RagNode({
id,
data,
@@ -73,21 +71,22 @@ export function RagNode({
{/* */}
-
+
- {id}
+ {/* {data.label} */}
+
-
+ {/* {id}
*/}
- */}
+
);
}