diff --git a/react-ui/src/pages/Workspace/components/QuickStart/index.tsx b/react-ui/src/pages/Workspace/components/QuickStart/index.tsx index 452cceea..e27d2b76 100644 --- a/react-ui/src/pages/Workspace/components/QuickStart/index.tsx +++ b/react-ui/src/pages/Workspace/components/QuickStart/index.tsx @@ -16,13 +16,13 @@ function QuickStart() { const changeScale = () => { // body 的宽度 - 菜单的宽度 - 两个 padding - 右边用户管理的宽度 - 右边用户管理的 marginLeft - 滚动条的宽度, const width = document.body.offsetWidth - 256 - 80 - 60 - 326 - 15 - 8; - if (width >= 1223) { - const spaceX = (width - 192 * 5 - 60) / 7; + if (width >= 1002) { + const spaceX = (width - 192 * 4 - 60) / 6; setSpace(spaceX); setCanvasWidth('100%'); setScale(1.0); } else { - const ratio = width / 1223; + const ratio = width / 1002; setCanvasWidth('1223px'); setSpace(29); setScale(ratio); @@ -60,20 +60,20 @@ function QuickStart() { y={309} onClick={() => navigate('/datasetPreparation/datasetAnnotation')} /> - navigate('/developmentEnvironment')} - /> + /> */} navigate('/pipeline/template')} /> @@ -81,7 +81,7 @@ function QuickStart() { content="开发者可以在这里运行流水线模板,产生实验实例,对比实验训练过程与产生的实验训练数据" buttonText="实验" buttonTop={40} - x={left + 3 * (192 + space)} + x={left + 2 * (192 + space)} y={295} onClick={() => navigate('/pipeline/experiment')} /> @@ -90,20 +90,20 @@ function QuickStart() { tips="模型在线服务" buttonText="服务" buttonTop={20} - x={left + 4 * (192 + space) + 60 + space} + x={left + 3 * (192 + space) + 60 + space} y={263} onClick={() => navigate('/dataset/modelDeployment')} />
模型管理
任务自动调度 @@ -117,7 +117,7 @@ function QuickStart() { arrorwTop={-4} borderBottom={1} /> - + /> */} (); - const [robotFrameVisible, setRobotFrameVisible] = useState(false); - const { handleStart, handleStop, handleDrag, handleClick } = useDraggable(() => - setRobotFrameVisible((prev) => !prev), - ); + // const [robotFrameVisible, setRobotFrameVisible] = useState(false); + // const { handleStart, handleStop, handleDrag, handleClick } = useDraggable(() => + // setRobotFrameVisible((prev) => !prev), + // ); const users: number[] = new Array(8).fill(0); useEffect(() => { @@ -85,7 +85,7 @@ function Workspace() {
- + {/* setRobotFrameVisible(false)} - > + > */} ); }