From dbddb163a1a2844dc1325a8b7ec1296ab4728c85 Mon Sep 17 00:00:00 2001 From: Blucas <15555602203@163.com> Date: Wed, 19 Feb 2025 23:46:54 +0800 Subject: [PATCH] feat: update style --- .../ReplayLab/components/Welcome/index.tsx | 55 ++++++++++--------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/src/pages/ReplayLab/components/Welcome/index.tsx b/src/pages/ReplayLab/components/Welcome/index.tsx index 7a640872..1957ec43 100644 --- a/src/pages/ReplayLab/components/Welcome/index.tsx +++ b/src/pages/ReplayLab/components/Welcome/index.tsx @@ -9,6 +9,7 @@ import Icon from '@ant-design/icons'; import { ImportGuide } from '../ImportGuide'; import { useEffect } from 'react'; import demo from './demo.json?url'; +import { useThreshold } from '@/utils/useThreshold'; export const Welcome = () => { const { t } = useTranslation(); @@ -30,6 +31,8 @@ export const Welcome = () => { // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + const isMobile = useThreshold(414); + return ( { 数据都在本地,不经过网络传输,无需担心隐私泄露 - - - - + + + + + - { - const blob = URL.createObjectURL(file.file as File); - gotoReplay(blob); - }} - itemRender={() => null} - > - - + + +