ryoji-s 3 лет назад
Родитель
Сommit
233d8fe7e2
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      packages/app/src/components/ReactMarkdownComponents/Attachment.tsx

+ 5 - 5
packages/app/src/components/ReactMarkdownComponents/Attachment.tsx

@@ -21,6 +21,7 @@ export const Attachment: React.FC<{
     return dataAttachments.attachments.find(item => item._id === attachmentId);
     return dataAttachments.attachments.find(item => item._id === attachmentId);
   }, [attachmentId, dataAttachments]);
   }, [attachmentId, dataAttachments]);
 
 
+  // TODO: Call delete attachment modal.
   const handleAttachmentDelete = useCallback(async() => {
   const handleAttachmentDelete = useCallback(async() => {
     if (attachment == null) {
     if (attachment == null) {
       return;
       return;
@@ -45,15 +46,14 @@ export const Attachment: React.FC<{
 
 
   return (
   return (
     <div className="card my-3" style={{ width: 'fit-content' }}>
     <div className="card my-3" style={{ width: 'fit-content' }}>
-      <div className="card-body">
+      <div className="card-body pr-0">
         <div className='row'>
         <div className='row'>
-          {/* TODO: Design check */}
           <div className='col-2'>
           <div className='col-2'>
-            <i className='icon-doc' style={{ fontSize: '2.7rem' }}/>
+            <div className='icon-doc' style={{ fontSize: '2.7rem', opacity: '0.5' }}/>
           </div>
           </div>
           <div className='col-10'>
           <div className='col-10'>
             <div>
             <div>
-              <a href={attachment.downloadPathProxied}>{attachment.originalName}</a>
+              <a className='' href={attachment.downloadPathProxied}>{attachment.originalName}</a>
               <span className='ml-2'>
               <span className='ml-2'>
                 <a className="attachment-download" href={attachment.downloadPathProxied}>
                 <a className="attachment-download" href={attachment.downloadPathProxied}>
                   <i className="icon-cloud-download" />
                   <i className="icon-cloud-download" />
@@ -68,7 +68,7 @@ export const Attachment: React.FC<{
             <div>
             <div>
               <UserPicture user={attachment.creator} size="sm"></UserPicture>
               <UserPicture user={attachment.creator} size="sm"></UserPicture>
               {/* TODO: check locale */}
               {/* TODO: check locale */}
-              <span className='ml-2 text-muted'>{new Date(attachment.createdAt).toLocaleString('ja-JP')}</span>
+              <span className='ml-2 text-muted'>{new Date(attachment.createdAt).toLocaleString()}</span>
               <span className='border-left ml-2 pl-2 text-muted'>{prettyBytes(attachment.fileSize)}</span>
               <span className='border-left ml-2 pl-2 text-muted'>{prettyBytes(attachment.fileSize)}</span>
             </div>
             </div>
           </div>
           </div>