You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user