From 7efe526a5ea8d6b68b676ee775e96ec69c28b3d7 Mon Sep 17 00:00:00 2001 From: fatchan Date: Fri, 4 Oct 2019 02:13:11 +0000 Subject: [PATCH] fix video thumbs --- gulp/res/css/style.css | 2 ++ helpers/files/videothumbnail.js | 2 +- views/custompages/rules.pug | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gulp/res/css/style.css b/gulp/res/css/style.css index 8b8e556a..ae2c37e4 100644 --- a/gulp/res/css/style.css +++ b/gulp/res/css/style.css @@ -574,6 +574,7 @@ textarea { box-sizing: border-box; padding: .5em; max-width: 100%; + min-width: 25em; } .anchor:target + .post-container, .post-container.highlighted { @@ -827,6 +828,7 @@ table.boardtable th:nth-child(3),table.boardtable th:nth-child(4),table.boardtab .post-container { box-shadow: none; width: 100%; + min-width: unset; } .catalog-tile { diff --git a/helpers/files/videothumbnail.js b/helpers/files/videothumbnail.js index e492dfb6..0583afb2 100644 --- a/helpers/files/videothumbnail.js +++ b/helpers/files/videothumbnail.js @@ -12,7 +12,7 @@ module.exports = (file, geometry) => { .screenshots({ timestamps: ['1%'],//1% should remedy black first frames or fade-ins count: 1, - filename: `thumb-${file.hash}${thumbExtension}`, + filename: `thumb-${file.hash}${file.thumbextension}`, folder: `${uploadDirectory}/img/`, size: geometry.width > geometry.height ? '128x?' : '?x128' //keep aspect ratio, but also making sure taller/wider thumbs dont exceed 128 in either dimension diff --git a/views/custompages/rules.pug b/views/custompages/rules.pug index 3db2e656..d915c9e0 100644 --- a/views/custompages/rules.pug +++ b/views/custompages/rules.pug @@ -10,5 +10,7 @@ block content table.table-body tr.table-row td - p Do not post or link to any content that violates laws of the United States of America + p Do not post, link or promote any content that violates laws of the United States of America p Do not spam, flood or perform any actions to an extent that negatively impacts the usual function of the website/server + p SFW marked boards should be primarily safe for work and make ensure that NSFW content is spoilered +