You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
@@ -99,7 +99,7 @@ export default class StyleUserSettingsTab extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_onFontSizeChanged = (size) => {
|
_onFontSizeChanged = (size) => {
|
||||||
const parsedSize = isNaN(parseInt(size))?SettingsStore.getDefaultValue("font_size"):parseFloat(size);
|
const parsedSize = isNaN(parseInt(size)) ? SettingsStore.getDefaultValue("font_size") : parseFloat(size);
|
||||||
this.setState({fontSize: parsedSize});
|
this.setState({fontSize: parsedSize});
|
||||||
SettingsStore.setValue("font_size", null, SettingLevel.DEVICE, parsedSize);
|
SettingsStore.setValue("font_size", null, SettingLevel.DEVICE, parsedSize);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user