diff --git a/src/components/chat/ChatAttachmentItems.jsx b/src/components/chat/ChatAttachmentItems.jsx index 4337460..cde6d91 100644 --- a/src/components/chat/ChatAttachmentItems.jsx +++ b/src/components/chat/ChatAttachmentItems.jsx @@ -449,26 +449,45 @@ export class VfsAttachmentLink extends PureComponent { - {(isDownloading || isOpening) && ( - - )} {!notFound && ( <> - + {isOpening ? ( + + ) : ( + + )} - + {isDownloading ? ( + + ) : ( + + )} )} @@ -546,22 +565,25 @@ export class VfsAttachmentLink extends PureComponent { }} onClick={(e) => e.stopPropagation()} > - {(isDownloading || isOpening) && ( - - )} {canView && ( - + {isOpening ? ( + + ) : ( + + )} )} - + {isDownloading ? ( + + ) : ( + + )} )}