1
0
mirror of https://gitlab.com/timvisee/send.git synced 2024-11-10 05:02:45 +01:00

fixed welcome page flicker

This commit is contained in:
Danny Coates 2018-02-05 13:28:38 -08:00
parent 81ee6de0a3
commit 77d5f1e603
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -5,8 +5,10 @@ const fileList = require('../templates/fileList');
const { bytes, fadeOut } = require('../utils');
module.exports = function(state, emit) {
// the page flickers if both the server and browser set 'fadeIn'
const fade = state.layout ? '' : 'fadeIn';
const div = html`
<div id="page-one" class="fadeIn">
<div id="page-one" class="${fade}">
<div class="title">${state.translate('uploadPageHeader')}</div>
<div class="description">
<div>${state.translate('uploadPageExplainer')}</div>