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

Commit

Permalink
Add a comment for weirdly placed div
Browse files Browse the repository at this point in the history
  • Loading branch information
Palid committed Aug 11, 2021
1 parent ef3737d commit 723400a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/messages/MImageBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
key={`img-${showPlaceholder}`}
timeout={300}
>
{ /* This weirdly looking div is necessary here, otherwise SwitchTransition fails */ }
<div>
{ showPlaceholder && <div
className={classes}
Expand Down

0 comments on commit 723400a

Please sign in to comment.