put spacer behind rather than before link to open lightbox

This commit is contained in:
Bruno Windels 2020-11-20 16:14:32 +01:00
parent 45dd539179
commit 83d54351b1

View file

@ -39,8 +39,8 @@ export class ImageView extends TemplateView {
style: `max-width: ${vm.thumbnailWidth}px; max-height: ${vm.thumbnailHeight}px;`
});
const children = [
vm.isPending ? img : t.a({href: vm.lightboxUrl}, img),
t.div({className: "spacer", style: spacerStyle}),
vm.isPending ? img : t.a({href: vm.lightboxUrl}, img),
t.time(vm.date + " " + vm.time),
];
if (vm.isPending) {