Fixes and remove logs

This commit is contained in:
Mo Tarbin
2026-07-07 00:23:36 -04:00
parent 57ac5cb9bf
commit 12d95dd4b1
9 changed files with 60 additions and 30 deletions

View File

@@ -92,12 +92,14 @@ function AttachmentViewerModal({ config }) {
component='img'
src={url}
alt={fileName}
onClick={() => url && openUrl(url)}
onLoad={() => setImgLoaded(true)}
onError={() => {
setImgLoaded(true)
setImgError(true)
}}
sx={{
cursor: url ? 'zoom-in' : 'default',
maxWidth: '100%',
maxHeight: '65vh',
borderRadius: 'md',