From 7a4852908b0b6d06c25873c519e6fc9da98470d1 Mon Sep 17 00:00:00 2001 From: cp3hnu Date: Mon, 19 May 2025 18:41:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/pages/Mirror/Create/index.less | 8 +++++ react-ui/src/pages/Mirror/Create/index.tsx | 35 +++++++++++++++++---- 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/react-ui/src/pages/Mirror/Create/index.less b/react-ui/src/pages/Mirror/Create/index.less index 84f4c197..403a2a44 100644 --- a/react-ui/src/pages/Mirror/Create/index.less +++ b/react-ui/src/pages/Mirror/Create/index.less @@ -9,6 +9,14 @@ background-color: white; border-radius: 10px; + &__name-row { + :global { + .ant-form-item-row { + flex-wrap: nowrap; + } + } + } + &__type { color: @text-color; font-size: @font-size-input-lg; diff --git a/react-ui/src/pages/Mirror/Create/index.tsx b/react-ui/src/pages/Mirror/Create/index.tsx index a32e99a1..ebbd12e7 100644 --- a/react-ui/src/pages/Mirror/Create/index.tsx +++ b/react-ui/src/pages/Mirror/Create/index.tsx @@ -123,8 +123,6 @@ function MirrorCreate() { return true; }; - const descTitle = isAddVersion ? '版本描述' : '镜像描述'; - return (
@@ -161,6 +159,7 @@ function MirrorCreate() { message: '只支持小写字母、数字、点(.)、下划线(_)、中横线(-)、斜杠(/)', }, ]} + className={styles['mirror-create__content__name-row']} > + {!isAddVersion && ( + + + + + + + + )}