Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
set a max-width on error modal and fix misaligned checkmark icon (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriesse authored and juliangruber committed Mar 22, 2017
1 parent cb11436 commit 9ec6480
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions elements/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -108,6 +109,7 @@ const input = css`
width: var(--icon-height);
height: .875rem;
vertical-align: -.15rem;
display: inline-block;
}
.confirmation {
right: 0;
Expand Down Expand Up @@ -189,22 +191,22 @@ function crashModal () {

function render (onOk, onExit) {
return html`
<div class="relative flex flex-column justify-center ${prefix}">
<section class="pa4">
<div class="relative flex flex-column justify-center pa0 ${prefix}">
<section>
<h3 class="f4">Unexpected issue</h3>
<p class="mt3 mb4 f7 color-neutral-70">
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.
</p>
<p>
<p class="pb4 cf">
${button.green('Exit Application', {
class: 'fr ml3',
onclick: onexit
})}
</p>
</section>
<section class="pa4" style="background-color: var(--color-yellow-disabled)">
<section class="pa4 bg-yellow-disabled">
<p class="mt3 mb4 f7 color-neutral-70">
<strong>Danger Zone:</strong> If this error keeps occurring you can
try to clear the database or delete all data. These actions cannot
Expand Down

0 comments on commit 9ec6480

Please sign in to comment.