From 41aaf29be77f5d7f70a3a690541794b1501f4e49 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 9 Dec 2023 12:58:26 +0100 Subject: [PATCH] Fix error overflow --- src/pages/parts/errors/ErrorCard.tsx | 20 ++++++++++---------- src/pages/parts/errors/ErrorPart.tsx | 8 ++++---- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/pages/parts/errors/ErrorCard.tsx b/src/pages/parts/errors/ErrorCard.tsx index 3930326b..a03abe38 100644 --- a/src/pages/parts/errors/ErrorCard.tsx +++ b/src/pages/parts/errors/ErrorCard.tsx @@ -37,10 +37,10 @@ export function ErrorCard(props: { return ( // I didn't put a here because it'd fade out, then jump height weirdly -
-
- {t("errors.details")} -
+
+
+ {t("errors.details")} +
-
+
{errorMessage}
@@ -82,8 +82,8 @@ export function ErrorCardInPlainModal(props: { }) { if (!props.show || !props.error) return null; return ( -
-
+
+
@@ -99,7 +99,7 @@ export function ErrorCardInModal(props: { return ( -
+
diff --git a/src/pages/parts/errors/ErrorPart.tsx b/src/pages/parts/errors/ErrorPart.tsx index 9d62b3dc..2d39af3a 100644 --- a/src/pages/parts/errors/ErrorPart.tsx +++ b/src/pages/parts/errors/ErrorPart.tsx @@ -21,10 +21,10 @@ export function ErrorPart(props: { error: any; errorInfo: any }) { const error = `${props.error.toString()}\n${errorLines.join("\n")}`; return ( -
+
- + {t("errors.badge")} {t("errors.title")} @@ -38,14 +38,14 @@ export function ErrorPart(props: { error: any; errorInfo: any }) {
window.location.reload()} > {t("errors.reloadPage")} setShowErrorCard(true)} > {t("errors.showError")}