diff --git a/src/frontend/src/modals/IOModal/components/chatView/filePreviewChat/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/filePreviewChat/index.tsx index c5a8f3055..092a797f1 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/filePreviewChat/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/filePreviewChat/index.tsx @@ -22,7 +22,7 @@ export default function FilePreview({ const fileExtension = name.split(".").pop(); // Get the file extension const baseName = name.slice(0, name.lastIndexOf(".")); // Get the base name without the extension if (baseName.length > 6) { - return `${baseName.slice(0, 10)}...${fileExtension}`; + return `${baseName.slice(0, 29)}...${fileExtension}`; } return name; }; @@ -52,7 +52,7 @@ export default function FilePreview({
Error...
) : (
setIsHovered(true)} @@ -75,7 +75,7 @@ export default function FilePreview({ )} {isHovered && (