fixed intro size on home page
This commit is contained in:
parent
dee9c0a538
commit
5ebe869c26
|
@ -8,28 +8,26 @@ module.exports = function(state, emit) {
|
||||||
const archives = state.storage.files.map(archive =>
|
const archives = state.storage.files.map(archive =>
|
||||||
archiveTile(state, emit, archive)
|
archiveTile(state, emit, archive)
|
||||||
);
|
);
|
||||||
let wip = '';
|
let left = '';
|
||||||
if (state.uploading) {
|
if (state.uploading) {
|
||||||
wip = archiveTile.uploading(state, emit);
|
left = archiveTile.uploading(state, emit);
|
||||||
} else if (state.archive) {
|
} else if (state.archive) {
|
||||||
wip = archiveTile.wip(state, emit);
|
left = archiveTile.wip(state, emit);
|
||||||
} else {
|
} else {
|
||||||
wip = archiveTile.empty(state, emit);
|
left = archiveTile.empty(state, emit);
|
||||||
}
|
}
|
||||||
archives.reverse();
|
archives.reverse();
|
||||||
if (archives.length < 1) {
|
const right =
|
||||||
archives.push(intro(state));
|
archives.length < 1
|
||||||
}
|
? intro(state)
|
||||||
|
: list(archives, 'list-reset h-full overflow-y-scroll', 'pb-4');
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
<main class="main container md:relative">
|
<main class="main container md:relative">
|
||||||
${state.modal && modal(state, emit)}
|
${state.modal && modal(state, emit)}
|
||||||
<section class="h-full w-full px-6 md:flex md:flex-row">
|
<section class="h-full w-full px-6 md:flex md:flex-row">
|
||||||
<div class="pt-4 md:pb-4 md:mr-6 md:w-1/2">${wip}</div>
|
<div class="pt-4 md:pb-4 md:mr-6 md:w-1/2">${left}</div>
|
||||||
${list(
|
<div class="py-4 md:w-1/2">${right}</div>
|
||||||
archives,
|
|
||||||
'list-reset h-full md:w-1/2 overflow-y-scroll pt-2',
|
|
||||||
'py-2'
|
|
||||||
)}
|
|
||||||
</section>
|
</section>
|
||||||
</main>`;
|
</main>`;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue