diff --git a/services/frontend/src/components/Canvas/ServiceNode.tsx b/services/frontend/src/components/Canvas/ServiceNode.tsx index 2bedfbe..cbd3d71 100644 --- a/services/frontend/src/components/Canvas/ServiceNode.tsx +++ b/services/frontend/src/components/Canvas/ServiceNode.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { ServerIcon } from "@heroicons/react/outline"; import { truncateStr } from "../../utils"; import { IServiceNodeItem, CallbackFunction } from "../../types"; import eventBus from "../../events/eventBus"; @@ -53,19 +54,21 @@ export default function ServiceNode(props: INodeProps) { }} > )} -
+
<> {node.canvasConfig.service_name && (
- {truncateStr(node.canvasConfig.service_name, 10)} + {truncateStr(node.canvasConfig.service_name, 12)}
)} {node.serviceConfig.container_name && (
- {truncateStr(node.serviceConfig.container_name, 10)} + {truncateStr(node.serviceConfig.container_name, 20)}
)} + +
diff --git a/services/frontend/src/components/Canvas/VolumeNode.tsx b/services/frontend/src/components/Canvas/VolumeNode.tsx index 6551be2..759f2dd 100644 --- a/services/frontend/src/components/Canvas/VolumeNode.tsx +++ b/services/frontend/src/components/Canvas/VolumeNode.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from "react"; +import { DatabaseIcon } from "@heroicons/react/outline"; import { truncateStr } from "../../utils"; import { IVolumeNodeItem, CallbackFunction } from "../../types"; import eventBus from "../../events/eventBus"; @@ -53,13 +54,15 @@ export default function VolumeNode(props: INodeProps) { }} > )} -
+
<> {node.volumeConfig.name && (
- {truncateStr(node.volumeConfig.name, 10)} + {truncateStr(node.volumeConfig.name, 20)}
)} + +