Added expand code block option

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-01-18 17:44:32 +01:00
parent 7f51553723
commit 7f727be4f6
No known key found for this signature in database
GPG key ID: 9760693FDD98A790
2 changed files with 6 additions and 0 deletions

View file

@ -46,6 +46,7 @@ export default class PreferencesUserSettingsTab extends React.Component {
'alwaysShowTimestamps',
'showRedactions',
'enableSyntaxHighlightLanguageDetection',
'expandCodeByDefault',
'showJoinLeaves',
'showAvatarChanges',
'showDisplaynameChanges',

View file

@ -300,6 +300,11 @@ export const SETTINGS: {[setting: string]: ISetting} = {
displayName: _td('Enable automatic language detection for syntax highlighting'),
default: false,
},
"expandCodeByDefault": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
displayName: _td('Expand code blocks by default'),
default: false,
},
"Pill.shouldShowPillAvatar": {
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
displayName: _td('Show avatars in user and room mentions'),