From 9ec6480d87a3e06e74e40c3f5b5f075165bde936 Mon Sep 17 00:00:00 2001 From: Kristina Schneider Date: Wed, 22 Mar 2017 09:53:41 +0100 Subject: [PATCH] set a max-width on error modal and fix misaligned checkmark icon (#314) --- elements/modal.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/elements/modal.js b/elements/modal.js index e086af03..14b6b4eb 100644 --- a/elements/modal.js +++ b/elements/modal.js @@ -18,6 +18,7 @@ const icon = require('./icon') const prefix = css` :host { min-width: 25rem; + max-width: 32rem; padding: 2rem 2.5rem 2rem; background-color: var(--color-white); box-shadow: 0 1.2rem 2.4rem rgba(0,0,0,.5); @@ -108,6 +109,7 @@ const input = css` width: var(--icon-height); height: .875rem; vertical-align: -.15rem; + display: inline-block; } .confirmation { right: 0; @@ -189,22 +191,22 @@ function crashModal () { function render (onOk, onExit) { return html` -
-
+
+

Unexpected issue

There was an unexpected fatal issue. The app will now close. We have received a bug report and will work to fix this as soon as possible.

-

+

${button.green('Exit Application', { class: 'fr ml3', onclick: onexit })}

-
+

Danger Zone: If this error keeps occurring you can try to clear the database or delete all data. These actions cannot