Commit 8da533f1 authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Files app: Fix Grid View not displaying file name for some images

When files in a folder are majority images, Grid View was hiding the
file name. This feature shouldn't be enabled in the new design, this CL
fixes this.

Bug: 1059664
Change-Id: I85c5ec0b29358bf141ccb831dd2071a37b991178
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2094380
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: default avatarNoel Gordon <noel@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748531}
parent ab1ae306
...@@ -724,9 +724,11 @@ class FileGrid extends cr.ui.Grid { ...@@ -724,9 +724,11 @@ class FileGrid extends cr.ui.Grid {
li.classList.toggle('thumbnail-loaded', false); li.classList.toggle('thumbnail-loaded', false);
} }
li.classList.toggle( if (!util.isFilesNg()) {
'can-hide-filename', li.classList.toggle(
FileType.isImage(entry, mimeType) || FileType.isRaw(entry, mimeType)); 'can-hide-filename',
FileType.isImage(entry, mimeType) || FileType.isRaw(entry, mimeType));
}
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment