feat: add custom CSS to override preview thumb image container dimensions
This commit is contained in:
parent
16f8056867
commit
dae0c77d3c
@ -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();
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user