Set max width to window width if it does not exceed

This commit is contained in:
Kenox 2022-11-04 09:19:46 +01:00
commit 862499434c
2 changed files with 2 additions and 2 deletions

View file

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

File diff suppressed because one or more lines are too long