From fb32b8f0bb251d18ff7cd107ff59a494e3ee16a4 Mon Sep 17 00:00:00 2001 From: Artur Lozovski Date: Fri, 15 Dec 2023 14:38:14 +0000 Subject: [PATCH] change red to darker shade and whitespace-pre-line added to wrap text in alert box --- crates/librqbit/webui/src/components/ErrorComponent.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/librqbit/webui/src/components/ErrorComponent.tsx b/crates/librqbit/webui/src/components/ErrorComponent.tsx index 9a5e6fa..8061921 100644 --- a/crates/librqbit/webui/src/components/ErrorComponent.tsx +++ b/crates/librqbit/webui/src/components/ErrorComponent.tsx @@ -7,7 +7,7 @@ const AlertDanger: React.FC<{ onClose?: () => void; }> = ({ title, children, onClose }) => { return ( -
+

{title}

{onClose && ( @@ -36,7 +36,7 @@ export const ErrorComponent = (props: { {error.details?.statusText && (
{error.details?.statusText}
)} -
{error.details?.text}
+
{error.details?.text}
); };