From 41aaf29be77f5d7f70a3a690541794b1501f4e49 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 9 Dec 2023 12:58:26 +0100 Subject: [PATCH 1/4] 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")} From 0000354a138eaabf8550494efdd0d2438ead221a Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 9 Dec 2023 13:12:26 +0100 Subject: [PATCH 2/4] Hide copy texts on mega-small viewports https://youtu.be/q6EoRBvdVPQ --- src/pages/parts/errors/ErrorCard.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/parts/errors/ErrorCard.tsx b/src/pages/parts/errors/ErrorCard.tsx index a03abe38..93aa7981 100644 --- a/src/pages/parts/errors/ErrorCard.tsx +++ b/src/pages/parts/errors/ErrorCard.tsx @@ -53,8 +53,10 @@ export function ErrorCard(props: { ) : ( <> - - {t("actions.copy")} + + + {t("actions.copy")} + )} From f17ccd506649034fc82804080dda7efd759a0439 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 9 Dec 2023 13:16:08 +0100 Subject: [PATCH 3/4] Fix text alignment, also apply text style to copied --- src/pages/parts/errors/ErrorCard.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/parts/errors/ErrorCard.tsx b/src/pages/parts/errors/ErrorCard.tsx index 93aa7981..4ee4c2ab 100644 --- a/src/pages/parts/errors/ErrorCard.tsx +++ b/src/pages/parts/errors/ErrorCard.tsx @@ -37,7 +37,7 @@ export function ErrorCard(props: { return ( // I didn't put a here because it'd fade out, then jump height weirdly -
+
{t("errors.details")}
@@ -48,13 +48,15 @@ export function ErrorCard(props: { > {hasCopied ? ( <> - - {t("actions.copied")} + + + {t("actions.copied")} + ) : ( <> - - + + {t("actions.copy")} From 3b329bcf14730dcab5dfaa3374d27dfa6f589cc5 Mon Sep 17 00:00:00 2001 From: Jip Fr Date: Sat, 9 Dec 2023 13:40:53 +0100 Subject: [PATCH 4/4] Fix stupid checkmark thing >:( --- src/pages/parts/errors/ErrorCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/parts/errors/ErrorCard.tsx b/src/pages/parts/errors/ErrorCard.tsx index 4ee4c2ab..9c975596 100644 --- a/src/pages/parts/errors/ErrorCard.tsx +++ b/src/pages/parts/errors/ErrorCard.tsx @@ -43,7 +43,7 @@ export function ErrorCard(props: {