Added website limit and show more button. Closes #592.

This commit is contained in:
Mike Cao 2022-03-01 23:03:50 -08:00
parent 7a3c1e9faa
commit 373dbf50ba
8 changed files with 87 additions and 26 deletions

View file

@ -25,9 +25,8 @@ export default function StickyHeader({
}
};
checkPosition();
if (enabled) {
checkPosition();
window.addEventListener('scroll', checkPosition);
}