Browse Source

fix: 修复实验抽屉晃动的问题

pull/177/head
cp3hnu 11 months ago
parent
commit
50eeb44f0b
4 changed files with 4 additions and 10 deletions
  1. +1
    -1
      react-ui/src/app.tsx
  2. +0
    -6
      react-ui/src/pages/Experiment/Info/index.less
  3. +2
    -1
      react-ui/src/pages/Experiment/components/ExperimentDrawer/index.less
  4. +1
    -2
      react-ui/src/pages/Experiment/components/ExperimentDrawer/index.tsx

+ 1
- 1
react-ui/src/app.tsx View File

@@ -250,7 +250,7 @@ export const antd: RuntimeAntdConfig = (memo) => {
}; };


memo.theme.cssVar = true; memo.theme.cssVar = true;
// memo.theme.hashed = false;
memo.theme.hashed = false;


memo.appConfig = { memo.appConfig = {
message: { message: {


+ 0
- 6
react-ui/src/pages/Experiment/Info/index.less View File

@@ -30,10 +30,4 @@
background-image: url(@/assets/img/pipeline-canvas-bg.png); background-image: url(@/assets/img/pipeline-canvas-bg.png);
background-size: 100% 100%; background-size: 100% 100%;
} }

:global {
.ant-drawer-mask {
background: transparent !important;
}
}
} }

+ 2
- 1
react-ui/src/pages/Experiment/components/ExperimentDrawer/index.less View File

@@ -1,4 +1,5 @@
.experiment-drawer { .experiment-drawer {
line-height: var(--ant-line-height);
:global { :global {
.ant-drawer-body { .ant-drawer-body {
overflow-y: hidden; overflow-y: hidden;
@@ -12,7 +13,7 @@
} }


&__tabs { &__tabs {
height: calc(100% - 170px);
height: calc(100% - 169px);
:global { :global {
.ant-tabs-nav { .ant-tabs-nav {
padding-left: 24px; padding-left: 24px;


+ 1
- 2
react-ui/src/pages/Experiment/components/ExperimentDrawer/index.tsx View File

@@ -95,10 +95,9 @@ const ExperimentDrawer = ({


return ( return (
<Drawer <Drawer
rootStyle={{ marginTop: '55px' }}
rootStyle={{ marginTop: '111px' }}
title="任务执行详情" title="任务执行详情"
placement="right" placement="right"
getContainer={false}
closeIcon={<CloseOutlined className={styles['experiment-drawer__close']} />} closeIcon={<CloseOutlined className={styles['experiment-drawer__close']} />}
onClose={onClose} onClose={onClose}
open={open} open={open}


Loading…
Cancel
Save