Fix bug
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
61281a855c
commit
e6ab47ff76
2 changed files with 3 additions and 35 deletions
|
@ -139,8 +139,9 @@ export default class TextualBody extends React.Component {
|
|||
}
|
||||
|
||||
_handleCodeBlockExpansion(codeBlock) {
|
||||
const expandCodeBlock = SettingsStore.getValue("expandCodeByDefault");
|
||||
codeBlock.className = expandCodeBlock ? "mx_EventTile_expandedCodeBlock" : "mx_EventTile_collapsedCodeBlock";
|
||||
if (!SettingsStore.getValue("expandCodeByDefault")) {
|
||||
codeBlock.className = "mx_EventTile_collapsedCodeBlock";
|
||||
}
|
||||
}
|
||||
|
||||
_highlightCode(codeBlock) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue