mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 19:13:10 -07:00
Set max width to window width if it does not exceed
This commit is contained in:
parent
ec3d0d2675
commit
862499434c
2 changed files with 2 additions and 2 deletions
|
@ -328,7 +328,7 @@ function highlightNew(code) {
|
|||
}
|
||||
codes[i].style.removeProperty("background-color");
|
||||
}
|
||||
const windowWidth = $(window).width();
|
||||
const windowWidth = $(document).width();
|
||||
if(windowWidth > maxWidth)
|
||||
maxWidth = windowWidth;
|
||||
|
||||
|
|
2
static/application.min.js
vendored
2
static/application.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue