diff --git a/packages/ui/src/components/editor/panels/Assets/container/index.tsx b/packages/ui/src/components/editor/panels/Assets/container/index.tsx index 5c3bebf2fb..954b2c9588 100644 --- a/packages/ui/src/components/editor/panels/Assets/container/index.tsx +++ b/packages/ui/src/components/editor/panels/Assets/container/index.tsx @@ -152,7 +152,10 @@ const ResourceFile = ({ resource }: { resource: StaticResourceType }) => { - {name} + + + {name} + = (props) => { const { projectName } = useMutableState(EditorState) const staticResource = useFind(staticResourcePath, { query: { key: props.item.key, project: projectName.value! } }) const thumbnailURL = staticResource.data[0]?.thumbnailURL + const { t } = useTranslation() + return (
= (props) => { color="text-[#375DAF]" />
-
{props.item.fullName}
+ + +
{props.item.fullName}
+
) } @@ -227,7 +233,6 @@ export function FileBrowserItem({ const [anchorEvent, setAnchorEvent] = React.useState>(undefined) const fileService = useMutation(fileBrowserPath) - const handleContextMenu = (event: React.MouseEvent) => { event.preventDefault() event.stopPropagation()