File tree Expand file tree Collapse file tree
Button/__tests__/__snapshots__
Dropdown/__tests__/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " react-chat-elements" ,
3- "version" : " 10.1.0 " ,
3+ "version" : " 10.1.1 " ,
44 "description" : " Reactjs chat components" ,
55 "author" : " Avare Kodcu <abdurrahmaneker58@gmail.com>" ,
66 "main" : " dist/main.js" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ exports[`Button component should render without issues 1`] = `
1111 " color" : " white" ,
1212 }
1313 }
14+ title = { null }
1415>
1516 <span />
1617</button >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ exports[`Dropdown component should render without issues 1`] = `
1414 icon = { null }
1515 onClick = { [Function ]}
1616 text = " "
17+ title = { null }
1718 type = { null }
1819 />
1920 <div
Original file line number Diff line number Diff line change 5151 align-items : center;
5252 display : flex;
5353}
54+ .rce-mbox-file--buttons .rce-error-button {
55+ display : inherit;
56+ }
5457
5558.rce-mbox-file--loading {
5659 font-size : 15px ;
Original file line number Diff line number Diff line change @@ -56,8 +56,10 @@ export class FileMessage extends Component {
5656 < div className = "rce-mbox-file--buttons" >
5757 {
5858 error &&
59- < FaError
60- color = '#ff3d3d' />
59+ < span className = "rce-error-button" >
60+ < FaError
61+ color = '#ff3d3d' />
62+ </ span >
6163 }
6264 {
6365 ! error &&
Original file line number Diff line number Diff line change 6464.rce-mbox-photo--download : active {
6565 opacity : .3 ;
6666}
67+
68+ .rce-mbox-photo--error {
69+ display : flex;
70+ justify-content : center;
71+ align-items : center;
72+ background : none;
73+ font-size : 70px ;
74+ color : # eaeaea ;
75+ }
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ export class PhotoMessage extends Component {
4646 {
4747 error &&
4848 < div className = "rce-mbox-photo--img__block" >
49- < button
50- className = "rce-mbox-photo--img__block-item rce-mbox-photo--download " >
49+ < span
50+ className = "rce-mbox-photo--img__block-item rce-mbox-photo--error " >
5151 < FaError />
52- </ button >
52+ </ span >
5353 </ div >
5454 }
5555 {
56- ! error &
56+ ! error &&
5757 this . props . data . status &&
5858 ! this . props . data . status . download &&
5959 < div className = "rce-mbox-photo--img__block" >
You can’t perform that action at this time.
0 commit comments