[www] update

This commit is contained in:
Roman Timashev committed 2017-10-24 17:27:46 +03:00
1 parent 69f9c1344e
commit 1efd23c403
5 files changed
+21 -13

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ function getAlbum() {
)
ctx.type = 'text/html'
ctx.body = await render(path, Component, getMeta(album), {commentsEnabled: true})
ctx.body = await render(path, Component, getMeta(album), {commentsEnabled: true, menuPadding: true})
} else {
ctx.status = 404
}
+1 -1
View File
@@ -29,7 +29,7 @@ const AlbumImage = ({data, alt}) => (
src={data.src}
width={data.width * m}
height={data.height * m}
srcSet={data.set.map(({url, density}) => `${url} ${density}x`)}
srcSet={(data.set || []).map(({url, density}) => `${url} ${density}x`)}
/>
</picture>
)