diff --git a/src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts b/src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts index 09279efc..dae8f253 100644 --- a/src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts +++ b/src/pages/dashboard/workplace/components/EditableLinkGroup/index.style.ts @@ -3,7 +3,6 @@ import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token }) => { return { linkGroup: { - padding: '20px 0 8px 24px', fontSize: '0', '& > a': { display: 'inline-block', diff --git a/src/pages/dashboard/workplace/index.tsx b/src/pages/dashboard/workplace/index.tsx index 15f107b9..23772a09 100644 --- a/src/pages/dashboard/workplace/index.tsx +++ b/src/pages/dashboard/workplace/index.tsx @@ -154,50 +154,42 @@ const Workplace: FC = () => { marginBottom: 24, }} title="进行中的项目" - bordered={false} + variant="borderless" extra={全部项目} loading={projectLoading} - bodyStyle={{ - padding: 0, - }} > {projectNotice.map((item) => ( - + + {item.title} + + } + description={item.description} + style={{ + width: '100%', }} - bordered={false} - > - - - {item.title} - - } - description={item.description} - style={{ - width: '100%', - }} - /> - - {item.member || ''} - {item.updatedAt && ( - - {dayjs(item.updatedAt).fromNow()} - - )} - - + /> + + {item.member || ''} + {item.updatedAt && ( + + {dayjs(item.updatedAt).fromNow()} + + )} + ))} { marginBottom: 24, }} title="快速开始 / 便捷导航" - bordered={false} - bodyStyle={{ - padding: 0, - }} + variant="borderless" > {}} @@ -232,43 +221,43 @@ const Workplace: FC = () => { style={{ marginBottom: 24, }} - bordered={false} + variant="borderless" title="XX 指数" loading={data?.radarData?.length === 0} > - - - + diff --git a/src/pages/dashboard/workplace/style.style.ts b/src/pages/dashboard/workplace/style.style.ts index 8bd03d35..2580b975 100644 --- a/src/pages/dashboard/workplace/style.style.ts +++ b/src/pages/dashboard/workplace/style.style.ts @@ -3,7 +3,7 @@ import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token }) => { return { activitiesList: { - padding: '0 24px 8px 24px', + padding: 0, }, username: { color: token.colorText, @@ -198,7 +198,6 @@ const useStyles = createStyles(({ token }) => { }, datetime: { flex: '0 0 auto', - float: 'right', color: token.colorTextDisabled, }, activeCard: {