feat: add custom CSS to override preview thumb image container dimensions

This commit is contained in:
Ching L 2025-12-04 00:54:16 +08:00
parent 16f8056867
commit dae0c77d3c

View File

@ -88,8 +88,22 @@
} }
// Add CSS to override the preview thumb image container dimensions
function addCustomStyles() {
const style = document.createElement('style');
style.textContent = `
.plyr__preview-thumb__image-container {
width: 85px !important;
height: 50px !important;
}
`;
document.head.appendChild(style);
console.log('Custom styles added for preview thumb image container');
}
// Run the sort function after the DOM content has loaded // Run the sort function after the DOM content has loaded
window.addEventListener('load', function() { window.addEventListener('load', function() {
addCustomStyles();
addSortButton(); addSortButton();
sortAllVideos(); sortAllVideos();
}) })