diff --git a/public/favicon.ico b/public/favicon.ico index 302b29ec..5221f91a 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/ChatItem/ChatItem.css b/src/ChatItem/ChatItem.css index 891a77de..4e042daf 100644 --- a/src/ChatItem/ChatItem.css +++ b/src/ChatItem/ChatItem.css @@ -14,6 +14,7 @@ user-select: none; max-width: 100%; overflow: hidden; + min-width: 240px; } .rce-citem:hover { diff --git a/src/MessageBox/MessageBox.css b/src/MessageBox/MessageBox.css index 78bc0bdd..c0bb6b4f 100644 --- a/src/MessageBox/MessageBox.css +++ b/src/MessageBox/MessageBox.css @@ -11,7 +11,7 @@ border-top-right-radius: 0px; margin-right: 20px; margin-top: 5px; - display: inline-block; + display: flex; flex-direction: column; margin-bottom: 5px; padding: 6px 9px 8px 9px; @@ -106,4 +106,58 @@ .rce-mbox-photo--download:active { opacity: .3; +} + +.rce-mbox-file { + background: #e9e9e9; + display: flex; + border-radius: 5px; + margin-top: -3px; + margin-right: -6px; + margin-left: -6px; + align-items: center; + min-height: 52px; + max-width: 500px; + padding: 5px 0; + cursor: pointer; + user-select: none; + outline: none; + border:none; +} + +.rce-mbox-file > * { + padding: 0px 10px; +} + +.rce-mbox-file--icon { + font-size: 30px; + align-items: center; + display: flex; + flex-direction: column; +} + +.rce-mbox-file--size { + font-size: 10px; + margin-top: 3px; + max-width: 52px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.rce-mbox-file--text { + font-size: 13.6px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.rce-mbox-file--buttons { + font-size: 30px; + align-items: center; + display: flex; +} + +.rce-mbox-file--loading { + font-size: 15px; } \ No newline at end of file diff --git a/src/MessageBox/MessageBox.js b/src/MessageBox/MessageBox.js index c2cd6266..498d40c0 100644 --- a/src/MessageBox/MessageBox.js +++ b/src/MessageBox/MessageBox.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import './MessageBox.css'; import FaCloudDownload from 'react-icons/lib/fa/cloud-download'; +import FaFile from 'react-icons/lib/fa/file'; const classNames = require('classnames'); const ProgressBar = require('react-progressbar.js'); @@ -26,6 +27,10 @@ export class MessageBox extends Component { circle.setText(value); } }; + var fileProgressOptions = Object.assign({}, progressOptions); + fileProgressOptions.strokeWidth = 5; + fileProgressOptions.color = '#333'; + fileProgressOptions.trailWidth = 5; return (