fix(style): always display offloads info

This commit is contained in:
jialin
2025-03-14 16:43:36 +08:00
parent ccbc36f991
commit 38ff16f3cd
7 changed files with 72 additions and 29 deletions
@@ -81,8 +81,15 @@ const AddModal: React.FC<AddModalProps> = (props) => {
const updateShowWarning = (backend: string) => {
const localPath = form.current?.getFieldValue?.('local_path');
const isBlobFile = localPath?.split('/').pop()?.includes('sha256');
console.log('upateShowWarning', backend, localPath);
if (isBlobFile) {
setWarningStatus({
show: false,
message: ''
});
return;
}
if (source !== modelSourceMap.local_path_value || !localPath) {
return;
@@ -233,7 +240,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
)}
<div style={{ display: 'flex', flex: 1, maxWidth: '100%' }}>
<ColumnWrapper
paddingBottom={warningStatus.show ? 140 : 50}
paddingBottom={warningStatus.show ? 155 : 50}
footer={
<>
{warningStatus.show && (