Add a comment for weirdly placed div

This commit is contained in:
Dariusz Niemczyk 2021-08-11 10:56:36 +02:00
parent ef3737d179
commit 723400ace6
No known key found for this signature in database
GPG key ID: 28DFE7164F497CB6

View file

@ -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}