fix(style): text overflow

This commit is contained in:
jialin
2024-10-25 18:36:18 +08:00
parent ba49fa6c88
commit abdc78e123
14 changed files with 119 additions and 99 deletions
+2 -2
View File
@@ -60,7 +60,7 @@ const ModelCard: React.FC<{
}
};
const removeMetadata = (str: string) => {
const removeMetadata = useCallback((str: string) => {
let indexes = [];
let index = str.indexOf('---');
@@ -75,7 +75,7 @@ const ModelCard: React.FC<{
return str.slice(indexes[1] + 3);
}
return str;
};
}, []);
// huggingface model card data
const getHuggingfaceModelDetail = async () => {