fix: slider marker label

This commit is contained in:
jialin
2026-01-07 15:55:26 +08:00
parent 28a73d2a6e
commit 065841530d
2 changed files with 16 additions and 3 deletions
+15 -2
View File
@@ -79,8 +79,21 @@ const AdvanceConfig = () => {
tooltip={{}}
step={1024}
marks={{
[modelContextData?.scaled]: 'scaled',
[modelContextData?.native]: 'native'
[modelContextData?.scaled]: {
label: 'scaled',
style: {
transform: 'translateX(-100%)'
}
},
[modelContextData?.native]: {
label: 'native',
style: {
transform:
modelContextData?.scaled === modelContextData?.native
? 'translateX(-100%)'
: 'unset'
}
}
}}
></SealSlider>
</Form.Item>
+1 -1
View File
@@ -414,7 +414,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
}
// TODO
fetchContextLength({ ...params, source });
// fetchContextLength({ ...params, source });
}, [isGGUF, source, localPath, modelScopeModelId, huggingfaceRepoId]);
return (