diff --git a/src/components/chat/ChatAttachmentItems.jsx b/src/components/chat/ChatAttachmentItems.jsx index cde6d91..9734e14 100644 --- a/src/components/chat/ChatAttachmentItems.jsx +++ b/src/components/chat/ChatAttachmentItems.jsx @@ -527,11 +527,10 @@ export class VfsAttachmentLink extends PureComponent { color: notFound ? (isUser ? 'rgba(255,255,255,0.6)' : 'text.disabled') : (isUser ? 'inherit' : 'primary.main'), - opacity: notFound ? 0.7 : ((isDownloading || isOpening) ? 0.75 : 1), - cursor: notFound ? 'not-allowed' : 'pointer', + opacity: notFound ? 0.7 : 1, + cursor: notFound ? 'not-allowed' : (isOpening || isDownloading ? 'wait' : 'pointer'), verticalAlign: 'middle', maxWidth: '100%', - transition: 'all 150ms ease-in-out', '&:hover': notFound ? {} : { bgcolor: isUser ? 'rgba(255, 255, 255, 0.28)' : 'action.hover', borderColor: isUser ? '#fff' : 'primary.main', @@ -552,61 +551,53 @@ export class VfsAttachmentLink extends PureComponent { textDecoration: notFound ? 'line-through' : 'none', }} > - {downloadName} - {effectiveType || 'VFS'}{notFound ? ' (404)' : ''} + {downloadName} - {effectiveType || 'VFS'} - {!notFound && ( - e.stopPropagation()} - > - {canView && ( - - {isOpening ? ( - - ) : ( - - )} - - )} + e.stopPropagation()} + > + {canView && ( - {isDownloading ? ( - - ) : ( - - )} + - - )} + )} + + + + ); }