Skip to content

Commit c5f96c8

Browse files
.rce-mbox-photo--error and rce-error-button classes added.
1 parent 83889fe commit c5f96c8

7 files changed

Lines changed: 23 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

src/Button/__tests__/__snapshots__/Button.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>

src/Dropdown/__tests__/__snapshots__/Dropdown.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src/FileMessage/FileMessage.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
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;

src/FileMessage/FileMessage.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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 &&

src/PhotoMessage/PhotoMessage.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@
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+
}

src/PhotoMessage/PhotoMessage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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">

0 commit comments

Comments
 (0)