Compare commits

..

2 Commits

Author SHA1 Message Date
c9b4ec26fd video elements shift fix 2025-04-08 14:15:26 +03:00
f7d99ee5fc Videos page new design 2025-04-08 14:12:38 +03:00

View File

@ -0,0 +1,8 @@
document.addEventListener("DOMContentLoaded", () => {
const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
document.body.style.paddingRight = `${scrollbarWidth}px`;
const navbarHeight = document.querySelector('.navbar').offsetHeight;
document.documentElement.style.scrollPaddingTop = `${navbarHeight}px`;
});