mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-21 11:43:10 -07:00
Fix issues with reloading
This commit is contained in:
parent
232d85379d
commit
ff96f2ae92
2 changed files with 4 additions and 1 deletions
|
@ -328,13 +328,16 @@ function highlightNew(code) {
|
|||
}
|
||||
codes[i].style.removeProperty("background-color");
|
||||
}
|
||||
|
||||
const windowWidth = $(document).width();
|
||||
console.log("Window width: " + windowWidth + " - MaxWidth: " + maxWidth)
|
||||
if(windowWidth > maxWidth)
|
||||
maxWidth = windowWidth;
|
||||
|
||||
for (let i = 0; i < codes.length; i++) {
|
||||
codes[i].style.width = maxWidth + 'px';
|
||||
}
|
||||
|
||||
code.style.backgroundColor = "rgba(187, 128, 9, 0.25)";
|
||||
}
|
||||
|
||||
|
|
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