File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 433433 OCA . Files . Files . handleDownload ( url ) ;
434434 }
435435
436- OCA . Files . Sidebar . open ( fileInfo . path ) ;
436+ if ( document . documentElement . clientWidth > 1024 ) {
437+ OCA . Files . Sidebar . open ( fileInfo . path ) ;
438+ }
437439 } catch ( error ) {
438440 console . error ( `Failed to trigger default action on the file for URL: ${ location . href } ` , error )
439441 }
704706
705707 // open sidebar and set file
706708 if ( typeof show === 'undefined' || ! ! show || ( OCA . Files . Sidebar . file !== '' ) ) {
707- OCA . Files . Sidebar . open ( path . replace ( '//' , '/' ) )
709+ if ( fileName !== null || document . documentElement . clientWidth > 1024 ) {
710+ OCA . Files . Sidebar . open ( path . replace ( '//' , '/' ) )
711+ }
708712 }
709713 } ,
710714
33403344 }
33413345 if ( file . length === 1 ) {
33423346 _ . defer ( function ( ) {
3343- this . showDetailsView ( file [ 0 ] ) ;
3347+ if ( document . documentElement . clientWidth > 1024 ) {
3348+ this . showDetailsView ( file [ 0 ] ) ;
3349+ }
33443350 } . bind ( this ) ) ;
33453351 }
33463352 this . highlightFiles ( file , function ( $tr ) {
You can’t perform that action at this time.
0 commit comments