Fix width issue

This commit is contained in:
Kenox 2022-11-04 09:28:51 +01:00
commit ed62ee6110
2 changed files with 2 additions and 2 deletions

View file

@ -329,7 +329,7 @@ function highlightNew(code) {
codes[i].style.removeProperty("background-color"); codes[i].style.removeProperty("background-color");
} }
const windowWidth = $(document).width(); const windowWidth = $(window).width();
console.log("Window width: " + windowWidth + " - MaxWidth: " + maxWidth) console.log("Window width: " + windowWidth + " - MaxWidth: " + maxWidth)
if(windowWidth > maxWidth) if(windowWidth > maxWidth)
maxWidth = windowWidth; maxWidth = windowWidth;

File diff suppressed because one or more lines are too long