Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 869a5fb

Browse files
authored
Merge pull request #6467 from matrix-org/t3chguy/fix/18110
2 parents e78a1ad + 4fe0e21 commit 869a5fb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

res/css/views/messages/_MImageBody.scss

+1-5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ limitations under the License.
1616

1717
$timelineImageBorderRadius: 4px;
1818

19-
.mx_MImageBody {
20-
display: block;
21-
}
22-
2319
.mx_MImageBody_thumbnail {
2420
object-fit: contain;
2521
border-radius: $timelineImageBorderRadius;
@@ -28,7 +24,7 @@ $timelineImageBorderRadius: 4px;
2824
justify-content: center;
2925
align-items: center;
3026

31-
> canvas {
27+
> div > canvas {
3228
border-radius: $timelineImageBorderRadius;
3329
}
3430
}

src/components/views/messages/MImageBody.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,10 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
425425

426426
if (this.state.error !== null) {
427427
return (
428-
<span className="mx_MImageBody">
428+
<div className="mx_MImageBody">
429429
<img src={require("../../../../res/img/warning.svg")} width="16" height="16" />
430430
{ _t("Error decrypting image") }
431-
</span>
431+
</div>
432432
);
433433
}
434434

@@ -443,10 +443,10 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
443443
const thumbnail = this.messageContent(contentUrl, thumbUrl, content);
444444
const fileBody = this.getFileBody();
445445

446-
return <span className="mx_MImageBody">
446+
return <div className="mx_MImageBody">
447447
{ thumbnail }
448448
{ fileBody }
449-
</span>;
449+
</div>;
450450
}
451451
}
452452

0 commit comments

Comments
 (0)