p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Fix horizontal scrollbars caused by nav bar

Open davepagurek opened this issue 1 year ago • 0 comments

Resolves https://github.com/processing/p5.js-website/issues/289

Turns out it was because it was using 100vw, which does not subtract the width of the vertical scroll bar, causing a slight overflow the size of the scroll bar width. Using 100% seems to fix it. I also replaced a hardcoded 200px with the variable for the sidebar offset.

image

davepagurek avatar Apr 27 '24 18:04 davepagurek