diff --git a/.gitignore b/.gitignore index 22f7aa01..9dd0d3bb 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,9 @@ node_modules # logs npm-debug.log + +# Ignore dist files +dist + +# WebStorm +.idea diff --git a/lib/assets/badge.js b/lib/assets/badge.js index e1818d90..39ce1aa6 100644 --- a/lib/assets/badge.js +++ b/lib/assets/badge.js @@ -118,7 +118,7 @@ div.style.lineHeight = '0' div.style.backgroundColor = '#FAFAFA' div.style.width = '25em' - div.style.height = '15.5em' + div.style.height = '25.5em' div.style.position = 'absolute' div.style.left = '-10000px' div.style.top = '-10000px' @@ -130,7 +130,7 @@ var ni = document.createElement('iframe') ni.className = '__slackin' ni.style.width = '25em' - ni.style.height = '15.5em' + ni.style.height = '25.5em' ni.style.borderWidth = 0 ni.src = iframe.src.replace('iframe', 'iframe/dialog') ni.onload = function (){ diff --git a/lib/assets/client.js b/lib/assets/client.js index 9b86107a..f5abdd82 100644 --- a/lib/assets/client.js +++ b/lib/assets/client.js @@ -70,7 +70,7 @@ socket.on('active', function (n){ update('active', n) }) function update (val, n, noanim){ var el = document.querySelector('.' + val) - if (n != el.innerHTML) { + if (el && n != el.innerHTML) { el.innerHTML = n anim(el, val) } diff --git a/lib/splash.js b/lib/splash.js index df4d7081..19f73402 100644 --- a/lib/splash.js +++ b/lib/splash.js @@ -344,8 +344,12 @@ function style ({ logo, active, large, iframe } = {}){ if (iframe) { css.add('.g-recaptcha', { - 'transform': 'scale(0.76)', + 'transform': large ? 'scale(1.0)' : 'scale(0.76)', 'transform-origin': '0 0', + 'margin-bottom': large ? '2em' : '0' + }) + css.add('.g-recaptcha div', { + 'width': '100% !important' }) }