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

Commit e232c4e

Browse files
committed
Improve the styling of search initialization errors.
Signed-off-by: Kalle Struik <[email protected]>
1 parent 9f26c1c commit e232c4e

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/components/views/elements/DesktopBuildsNotice.tsx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,22 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) {
3737
if (EventIndexPeg.get()) return null;
3838

3939
if (EventIndexPeg.error) {
40-
return <>
41-
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
42-
a: sub => (<a onClick={(evt) => {
43-
evt.preventDefault();
44-
dis.dispatch({
45-
action: Action.ViewUserSettings,
46-
initialTabId: UserTab.Security,
47-
});
48-
}}>
49-
{ sub }
50-
</a>),
51-
}) }
52-
</>;
40+
return (
41+
<div className="mx_DesktopBuildsNotice">
42+
{ _t("Message search initialisation failed, check <a>your settings</a> for more information", {}, {
43+
a: sub => (<a className="mx_linkButton"
44+
onClick={(evt) => {
45+
evt.preventDefault();
46+
dis.dispatch({
47+
action: Action.ViewUserSettings,
48+
initialTabId: UserTab.Security,
49+
});
50+
}}>
51+
{ sub }
52+
</a>),
53+
}) }
54+
</div>
55+
);
5356
}
5457

5558
const { desktopBuilds, brand } = SdkConfig.get();

0 commit comments

Comments
 (0)