diff --git a/app/ui/archiveTile.js b/app/ui/archiveTile.js index f1f37c92..881f4462 100644 --- a/app/ui/archiveTile.js +++ b/app/ui/archiveTile.js @@ -174,11 +174,13 @@ module.exports = function(state, emit, archive) { module.exports.wip = function(state, emit) { return html` -
+
${list( - state.archive.files.map(f => fileInfo(f, remove(f))), - 'list-reset h-full overflow-y-scroll p-4 bg-blue-lightest md:max-h-half-screen', - 'bg-white px-2 mb-3 border border-grey-light rounded' + Array.from(state.archive.files) + .reverse() + .map(f => fileInfo(f, remove(f))), + 'list-reset h-full overflow-y-scroll px-4 bg-blue-lightest md:max-h-half-screen', + 'bg-white px-2 mt-3 border border-grey-light rounded' )}
{ + document + .querySelector('#wip > ul > li:first-child') + .scrollIntoView({ block: 'center' }); + }); } function remove(file) {