Skip to content

Commit 6093acd

Browse files
authored
Merge pull request #16969 from nextcloud/bugfix/14350/thumbnail_should_open_thefile_not_sidebar
When you click on thumbnail of a file, it should open the file not the sidebar
2 parents 6188734 + ac2c1dd commit 6093acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files/js/filelist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@
828828
this.updateSelectionSummary();
829829
} else {
830830
// clicked directly on the name
831-
if (!this._detailsView || $(event.target).is('.nametext, .name') || $(event.target).closest('.nametext').length) {
831+
if (!this._detailsView || $(event.target).is('.nametext, .name, .thumbnail') || $(event.target).closest('.nametext').length) {
832832
var filename = $tr.attr('data-file');
833833
var renaming = $tr.data('renaming');
834834
if (!renaming) {

0 commit comments

Comments
 (0)