From 5ebe869c265b5204aad8d01269684824f47df7bb Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 1 Nov 2018 12:04:14 -0700 Subject: [PATCH] fixed intro size on home page --- app/ui/home.js | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/app/ui/home.js b/app/ui/home.js index 7c7a7aba..8b772f57 100644 --- a/app/ui/home.js +++ b/app/ui/home.js @@ -8,28 +8,26 @@ module.exports = function(state, emit) { const archives = state.storage.files.map(archive => archiveTile(state, emit, archive) ); - let wip = ''; + let left = ''; if (state.uploading) { - wip = archiveTile.uploading(state, emit); + left = archiveTile.uploading(state, emit); } else if (state.archive) { - wip = archiveTile.wip(state, emit); + left = archiveTile.wip(state, emit); } else { - wip = archiveTile.empty(state, emit); + left = archiveTile.empty(state, emit); } archives.reverse(); - if (archives.length < 1) { - archives.push(intro(state)); - } + const right = + archives.length < 1 + ? intro(state) + : list(archives, 'list-reset h-full overflow-y-scroll', 'pb-4'); + return html`
${state.modal && modal(state, emit)}
-
${wip}
- ${list( - archives, - 'list-reset h-full md:w-1/2 overflow-y-scroll pt-2', - 'py-2' - )} +
${left}
+
${right}
`; };