Browse Source

styles: 工作空间样式调整

pull/189/head
cp3hnu 1 year ago
parent
commit
400108a4b8
4 changed files with 16 additions and 6 deletions
  1. +1
    -1
      react-ui/src/pages/AutoML/components/ExperimentInstance/index.tsx
  2. +7
    -1
      react-ui/src/pages/Workspace/components/TotalStatistics/index.less
  3. +6
    -2
      react-ui/src/pages/Workspace/index.less
  4. +2
    -2
      react-ui/src/pages/Workspace/index.tsx

+ 1
- 1
react-ui/src/pages/AutoML/components/ExperimentInstance/index.tsx View File

@@ -107,7 +107,7 @@ function ExperimentInstanceComponent({
}; };


if (!experimentInsList || experimentInsList.length === 0) { if (!experimentInsList || experimentInsList.length === 0) {
return <div style={{ textAlign: 'center' }}>暂无实验实例</div>;
return <div style={{ textAlign: 'center' }}>暂无数据</div>;
} }


return ( return (


+ 7
- 1
react-ui/src/pages/Workspace/components/TotalStatistics/index.less View File

@@ -1,12 +1,18 @@
.total-statistics { .total-statistics {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center;
height: 140px; height: 140px;
padding: 0 16px; padding: 0 16px;


// 媒体查询
@media screen and (max-width: 1600px) {
flex: 1 1 content;
}

&__icon { &__icon {
width: 63px; width: 63px;
margin-right: 15px;
margin-right: 16px;
} }


&__title { &__title {


+ 6
- 2
react-ui/src/pages/Workspace/index.less View File

@@ -8,7 +8,6 @@
&__overview { &__overview {
flex: 1; flex: 1;
gap: 15px; gap: 15px;
margin-bottom: 16px;
padding: 20px 30px; padding: 20px 30px;
background-color: white; background-color: white;
border-radius: 4px; border-radius: 4px;
@@ -22,7 +21,6 @@


&__content { &__content {
display: flex; display: flex;

flex-wrap: wrap; flex-wrap: wrap;
gap: 15px; gap: 15px;
align-items: center; align-items: center;
@@ -35,6 +33,11 @@
rgba(22, 100, 255, 0.02) 58.35% rgba(22, 100, 255, 0.02) 58.35%
); );
border-radius: 4px; border-radius: 4px;

// 媒体查询
@media screen and (max-width: 1600px) {
flex: 1 1 content;
}
} }
} }
} }
@@ -44,6 +47,7 @@
gap: 15px; gap: 15px;
align-items: flex-start; align-items: flex-start;
width: 100%; width: 100%;
margin-top: 16px;
} }


&__user { &__user {


+ 2
- 2
react-ui/src/pages/Workspace/index.tsx View File

@@ -46,7 +46,7 @@ function Workspace() {
return ( return (
<div className={styles.workspace}> <div className={styles.workspace}>
<WorkspaceIntro></WorkspaceIntro> <WorkspaceIntro></WorkspaceIntro>
<Flex gap={'0 15px'} wrap>
<Flex gap={'15px'} wrap>
<div className={styles['workspace__overview']}> <div className={styles['workspace__overview']}>
<div className={styles['workspace__overview__title']}>运行概览</div> <div className={styles['workspace__overview__title']}>运行概览</div>
<div className={styles['workspace__overview__content']}> <div className={styles['workspace__overview__content']}>
@@ -59,7 +59,7 @@ function Workspace() {
<Divider <Divider
type="vertical" type="vertical"
dashed dashed
style={{ color: '1px dashed rgba(96, 107, 122, 0.19)', height: 68 }}
style={{ color: '1px dashed rgba(96, 107, 122, 0.19)', height: 68, margin: 0 }}
/> />
<TotalStatistics <TotalStatistics
icon={require('@/assets/img/workspace-experiment.png')} icon={require('@/assets/img/workspace-experiment.png')}


Loading…
Cancel
Save