about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/error_boundary.scss
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-11-28 15:01:40 +0100
committerThibG <thib@sitedethib.com>2018-11-28 22:36:01 +0100
commit922d05864f4ba37a4026cd5f7e6e6ed5417a7404 (patch)
treea157d4c4e3188d3e7de34793263ce1dce8dedefa /app/javascript/flavours/glitch/styles/components/error_boundary.scss
parent39c8a71df80d303ee08d24b3ce3a66400a1dcc0b (diff)
Add error boundary component to catch Web UI crashes
Diffstat (limited to 'app/javascript/flavours/glitch/styles/components/error_boundary.scss')
-rw-r--r--app/javascript/flavours/glitch/styles/components/error_boundary.scss32
1 files changed, 32 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/styles/components/error_boundary.scss b/app/javascript/flavours/glitch/styles/components/error_boundary.scss
new file mode 100644
index 000000000..f9bf425f8
--- /dev/null
+++ b/app/javascript/flavours/glitch/styles/components/error_boundary.scss
@@ -0,0 +1,32 @@
+.error-boundary {
+  h1 {
+    font-size: 26px;
+    line-height: 36px;
+    font-weight: 400;
+    margin-bottom: 8px;
+  }
+
+  p {
+    color: $primary-text-color;
+    font-size: 15px;
+    line-height: 20px;
+
+    a {
+      color: $primary-text-color;
+      text-decoration: underline;
+    }
+
+    ul {
+      list-style: disc;
+      margin-left: 0;
+      padding-left: 1em;
+    }
+
+    textarea.web_app_crash-stacktrace {
+      width: 100%;
+      resize: none;
+      white-space: pre;
+      font-family: $font-monospace, monospace;
+    }
+  }
+}