Fix inverted icon

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-01-20 14:08:57 +01:00
parent 19be3293e0
commit f8179f0c7a
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -133,10 +133,10 @@ export default class TextualBody extends React.Component {
button.onclick = async () => {
if (pre.className == "mx_EventTile_collapsedCodeBlock") {
pre.className = "";
button.className = "mx_EventTile_expandButton";
button.className = "mx_EventTile_collapseButton";
} else {
pre.className = "mx_EventTile_collapsedCodeBlock";
button.className = "mx_EventTile_collapseButton";
button.className = "mx_EventTile_expandButton";
}
};