add spaces to TileErrorBoundary (#9012)

This commit is contained in:
Kim Brose 2022-07-11 14:20:36 +02:00 committed by GitHub
parent a9d6896502
commit 3855c44299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,16 +76,22 @@ export default class TileErrorBoundary extends React.Component<IProps, IState> {
let submitLogsButton;
if (SdkConfig.get().bug_report_endpoint_url) {
submitLogsButton = <AccessibleButton kind="link" onClick={this.onBugReport}>
{ _t("Submit logs") }
</AccessibleButton>;
submitLogsButton = <>
&nbsp;
<AccessibleButton kind="link" onClick={this.onBugReport}>
{ _t("Submit logs") }
</AccessibleButton>
</>;
}
let viewSourceButton;
if (mxEvent && SettingsStore.getValue("developerMode")) {
viewSourceButton = <AccessibleButton onClick={this.onViewSource} kind="link">
{ _t("View Source") }
</AccessibleButton>;
viewSourceButton = <>
&nbsp;
<AccessibleButton onClick={this.onViewSource} kind="link">
{ _t("View Source") }
</AccessibleButton>
</>;
}
return (<li className={classNames(classes)} data-layout={this.props.layout}>