From db5e8b7da40b0aae31e85447e154e2c3a864cd65 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Wed, 11 Nov 2020 11:42:49 +0000 Subject: [PATCH] Small tweak to attachmentimg, add data-mimetype so customcsss can be set on them for thumbnail image --- views/mixins/catalogtile.pug | 2 +- views/mixins/post.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/mixins/catalogtile.pug b/views/mixins/catalogtile.pug index a7d6c299..be2904b0 100644 --- a/views/mixins/catalogtile.pug +++ b/views/mixins/catalogtile.pug @@ -31,7 +31,7 @@ mixin catalogtile(board, post, index) else if file.hasThumb img.catalog-thumb(src=`/file/thumb-${file.hash}${file.thumbextension}` width=file.geometry.thumbwidth height=file.geometry.thumbheight loading='lazy') else if file.attachment - div.attachmentimg.catalog-thumb + div.attachmentimg.catalog-thumb(data-mimetype=file.mimetype) else if file.mimetype.startsWith('audio') div.audioimg.catalog-thumb else diff --git a/views/mixins/post.pug b/views/mixins/post.pug index b148f21a..bc972123 100644 --- a/views/mixins/post.pug +++ b/views/mixins/post.pug @@ -86,7 +86,7 @@ mixin post(post, truncate, manage=false, globalmanage=false, ban=false) else if file.hasThumb img.file-thumb(src=`/file/thumb-${file.hash}${file.thumbextension}` height=file.geometry.thumbheight width=file.geometry.thumbwidth loading='lazy') else if file.attachment - div.attachmentimg.file-thumb + div.attachmentimg.file-thumb(data-mimetype=file.mimetype) else if type === 'audio' div.audioimg.file-thumb else