24
1
Fork 0

a few style tweaks

This commit is contained in:
Danny Coates 2019-03-01 14:12:23 -08:00
parent 4820f175dd
commit 8f74ccdb48
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
4 changed files with 10 additions and 10 deletions

View File

@ -269,7 +269,7 @@ export default function(state, emitter) {
setInterval(() => {
// poll for updates of the upload list
if (state.route === '/') {
if (!state.modal && state.route === '/') {
checkFiles();
}
}, 2 * 60 * 1000);
@ -277,6 +277,7 @@ export default function(state, emitter) {
setInterval(() => {
// poll for rerendering the file list countdown timers
if (
!state.modal &&
state.route === '/' &&
state.storage.files.length > 0 &&
Date.now() - lastRender > 30000

View File

@ -37,9 +37,7 @@ function preview(state, emit) {
class="flex flex-col w-full max-w-md h-full mx-auto items-center justify-center"
>
<h1 class="mb-4">${state.translate('downloadFilesTitle')}</h1>
<p
class="w-full md:w-4/5 font-light text-grey-darkest text-center leading-normal"
>
<p class="w-full text-grey-darkest text-center leading-normal">
${state.translate('downloadMessage')}
</p>
${archiveTile.preview(state, emit)}

View File

@ -9,9 +9,7 @@ module.exports = function(state, emit) {
class="h-full w-full flex flex-col items-center justify-center bg-white py-8 max-w-md mx-auto"
>
<h1 class="mb-4">${state.translate('downloadFilesTitle')}</h1>
<p
class="w-full mb-4 md:w-4/5 font-light text-center text-grey-darkest leading-normal"
>
<p class="w-full mb-4 text-center text-grey-darkest leading-normal">
${state.translate('downloadMessage')}
</p>
<form

View File

@ -12,10 +12,13 @@ module.exports = function(trigger) {
<send-signup-dialog
class="flex flex-col md:flex-row justify-center px-8 md:px-24 w-full h-full"
>
<img src="${assets.get('firefox_logo-only.svg')}" class="h-16 mb-4" />
<img
src="${assets.get('firefox_logo-only.svg')}"
class="h-16 mt-1 mb-4"
/>
<section class="flex flex-col flex-no-shrink self-center mx-6 max-w-xs">
<h1 class="font-bold">${state.translate('accountBenefitTitle')}</h1>
<ul class="leading-normal text-grey-darkest my-2 mb-8 mt-4 pl-4">
<ul class="leading-normal text-grey-darkest my-2 mt-4 pl-4">
<li>
${state.translate('accountBenefitLargeFiles', {
size: bytes(state.LIMITS.MAX_FILE_SIZE)
@ -28,7 +31,7 @@ module.exports = function(trigger) {
<li>${state.translate('accountBenefitSync')}</li>
</ul>
</section>
<section class="flex flex-col flex-grow m-4">
<section class="flex flex-col flex-grow self-center m-4 max-w-xs">
<form onsubmit=${submitEmail} data-no-csrf>
<input
id="email-input"