From f7f3530a3337892fde4870b9db729c3887298be7 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Fri, 31 Dec 2021 15:09:33 +0000 Subject: [PATCH] fix crash page --- Makefile | 3 ++- css/base.css | 1 + html/crash.html | 64 +++++++++++++++++++++++-------------------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/Makefile b/Makefile index 6df7986..536c07a 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,8 @@ else SOURCEMAP := COPYTS := TYPECHECK := - UNCSS := npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css + UNCSS := npx tailwindcss -i $(DATA)/web/css/bundle.css -o $(DATA)/bundle.css --content "html/crash.html" + # UNCSS := npx uncss $(DATA)/crash.html --csspath web/css --output $(DATA)/bundle.css TAILWIND := endif diff --git a/css/base.css b/css/base.css index 0747316..52f56f0 100644 --- a/css/base.css +++ b/css/base.css @@ -433,6 +433,7 @@ pre { white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ background-color: var(--color-content-high) !important; + overflow-x: scroll; } .circle { diff --git a/html/crash.html b/html/crash.html index 2e6f872..45cc7ab 100644 --- a/html/crash.html +++ b/html/crash.html @@ -7,41 +7,37 @@
-
-
-
-
- Crash report for jfa-go - {{ if .Err }} -
- Error: {{ .Err }} -
- {{ end }} - Create an Issue -
-
-
- Full Log - Copy -
-
- - -
-
-
{{ .Log }}
-
-
-

An attempt has been made to remove sensitive info, but make sure to check yourself.

-
{{ .SanitizedLog }}
-
-
+
+
+ Crash report for jfa-go + {{ if .Err }} +
+ Error: {{ .Err }}
-
+ {{ end }} + Create an Issue + +
+
+ Full Log + Copy +
+
+ + +
+
+
{{ .Log }}
+
+
+

An attempt has been made to remove sensitive info, but make sure to check yourself.

+
{{ .SanitizedLog }}
+
+