From 5c580559714d6650b3e61dccfcb751adb6cb3db3 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 23 May 2025 15:34:18 +0800 Subject: [PATCH] Fix(explorer): customized img file icon should keep its aspect ratio in large grid view --- src/component/FileManager/Explorer/FileTypeIcon.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/FileManager/Explorer/FileTypeIcon.tsx b/src/component/FileManager/Explorer/FileTypeIcon.tsx index 08912ea..461d8d5 100644 --- a/src/component/FileManager/Explorer/FileTypeIcon.tsx +++ b/src/component/FileManager/Explorer/FileTypeIcon.tsx @@ -150,6 +150,7 @@ const FileTypeIcon = ({ name, fileType, notLoaded, sx, hideUnknown, customizedCo sx={{ width: "24px", height: "24px", + objectFit: "contain", ...sx, }} src={IconComponent.img}