From 08aacdda5b932ab4423fdb947c20346fc0229168 Mon Sep 17 00:00:00 2001 From: Kalle Struik Date: Sun, 3 Oct 2021 17:38:49 +0200 Subject: [PATCH] Improve the styling of search initialization errors. Signed-off-by: Kalle Struik --- .../views/elements/DesktopBuildsNotice.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/components/views/elements/DesktopBuildsNotice.tsx b/src/components/views/elements/DesktopBuildsNotice.tsx index f2441b83a478..6ab0e20db882 100644 --- a/src/components/views/elements/DesktopBuildsNotice.tsx +++ b/src/components/views/elements/DesktopBuildsNotice.tsx @@ -37,19 +37,21 @@ export default function DesktopBuildsNotice({ isRoomEncrypted, kind }: IProps) { if (EventIndexPeg.get()) return null; if (EventIndexPeg.error) { - return <> - { _t("Message search initialisation failed, check your settings for more information", {}, { - a: sub => ( { - evt.preventDefault(); - dis.dispatch({ - action: Action.ViewUserSettings, - initialTabId: UserTab.Security, - }); - }}> - { sub } - ), - }) } - ; + return ( +
+ { _t("Message search initialisation failed, check your settings for more information", {}, { + a: sub => ( { + evt.preventDefault(); + dis.dispatch({ + action: Action.ViewUserSettings, + initialTabId: UserTab.Security, + }); + }}> + { sub } + ), + }) } +
+ ); } const { desktopBuilds, brand } = SdkConfig.get();