style: deploy modal message cover the content

This commit is contained in:
jialin
2025-11-19 11:46:18 +08:00
parent 18f861f771
commit 71bbf59467
13 changed files with 67 additions and 53 deletions
@@ -63,8 +63,6 @@ const FormWrapper = styled.div`
maxwidth: 100%;
`;
const AscendNPUQuant_F16 = ['F16', 'FP16'];
const AddModal: React.FC<AddModalProps> = (props) => {
const {
title,
@@ -97,7 +95,6 @@ const AddModal: React.FC<AddModalProps> = (props) => {
const axiosToken = useRef<any>(null);
const selectSpecRef = useRef<CatalogSpec>({} as CatalogSpec);
const specListRef = useRef<any[]>([]);
const hasF16Ref = useRef<boolean>(false);
const handleSumit = () => {
form.current?.submit?.();
@@ -361,13 +358,6 @@ const AddModal: React.FC<AddModalProps> = (props) => {
paddingTop: 0
}
}}
paddingBottom={
warningStatus.show
? Array.isArray(warningStatus.message)
? 150
: 125
: 50
}
footer={
<>
<CompatibilityAlert
@@ -587,7 +587,6 @@ const AddModal: FC<AddModalProps> = (props) => {
<FormWrapper>
<ColumnWrapper
paddingBottom={warningStatus.show ? 170 : 50}
styles={{
container: { paddingTop: 0 }
}}
@@ -262,7 +262,6 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
paddingTop: 0
}
}}
paddingBottom={warningStatus.show ? 100 : 50}
footer={
<>
<CompatibilityAlert