File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ logsEl.innerHTML = html;
7878
7979// 7. If no anchor is given, scroll to the last error
8080if ( location . hash === "" && errorCounter >= 0 ) {
81- const hasSmallViewport = window . innerWidth <= 750 ;
81+ const hasSmallViewport = window . outerWidth <= 750 ;
8282 document . getElementById ( `error-${ errorCounter } ` ) . scrollIntoView ( {
8383 behavior : 'instant' ,
8484 block : 'end' ,
@@ -100,7 +100,7 @@ if (location.hash !== "") {
100100 highlightTimestampRange ( startId , endId ) ;
101101
102102 // Scroll to the highlighted part (either the timestamp or the log line depending on the viewport size)
103- const hasSmallViewport = window . innerWidth <= 750 ;
103+ const hasSmallViewport = window . outerWidth <= 750 ;
104104 const scrollToElement = hasSmallViewport ? startRow . querySelector ( "td:nth-child(2)" ) : startRow ;
105105
106106 scrollToElement . scrollIntoView ( {
You can’t perform that action at this time.
0 commit comments