Compare commits
3 Commits
c9b4ec26fd
...
04e282d097
Author | SHA1 | Date | |
---|---|---|---|
04e282d097 | |||
7ce532f765 | |||
da16ee8070 |
@ -1,8 +0,0 @@
|
|||||||
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`;
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user