Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

add spaces to TileErrorBoundary #9012

Merged
merged 8 commits into from
Jul 11, 2022
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/components/views/messages/TileErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,19 @@ export default class TileErrorBoundary extends React.Component<IProps, IState> {

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}>
<div className="mx_EventTile_line">
<span>
{ _t("Can't load this message") }
{ mxEvent && ` (${mxEvent.getType()})` }
{ mxEvent && ` (${mxEvent.getType()})` } &nbsp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{ _t("Can't load this message") }
{ mxEvent && ` (${mxEvent.getType()})` }
{ mxEvent && ` (${mxEvent.getType()})` } &nbsp;
{ _t("Can't load this message") } &nbsp;
{ mxEvent && `(${mxEvent.getType()})` }

could there also be &nbsp in the if statement for submitLogsButton, so that we only add it if necessary?

{ submitLogsButton }
{ viewSourceButton }
</span>
Expand Down