fix video thumbs

merge-requests/208/head
fatchan 5 years ago
parent 1a19fa6945
commit 7efe526a5e
  1. 2
      gulp/res/css/style.css
  2. 2
      helpers/files/videothumbnail.js
  3. 4
      views/custompages/rules.pug

@ -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 {

@ -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

@ -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

Loading…
Cancel
Save