Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_quick_view.html

Issue 2265433002: Quick View: Stopped to show orange border when no-preview icon is clicked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/file_manager/foreground/elements/files_quick_view.html
diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.html b/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
index 41e79e615d646cc7478b7360aef57666f67924ac..9f5455b59bbdd8911e9e69160078cc30a7c39158 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
@@ -29,11 +29,11 @@
</div>
</paper-toolbar>
<div id="mainPanel">
- <div class='close-on-click' id="contentPanel" metadata-box-active$="[[metadataBoxActive]]" on-tap="onContentPanelTap_">
- <div class='close-on-click' id="innerContentPanel" tabindex="0">
+ <div id="contentPanel" metadata-box-active$="[[metadataBoxActive]]" on-tap="onContentPanelTap_">
+ <div id="innerContentPanel" tabindex="0">
<template is="dom-if" if="[[isImage_(type)]]">
- <div class="close-on-click" hidden="[[!contentUrl]]">
- <files-safe-media type="image" class="content" src="[[contentUrl]]"></files-safe-media>
+ <div hidden="[[!contentUrl]]">
+ <files-safe-media type="image" class="content no-close-on-click" src="[[contentUrl]]"></files-safe-media>
</div>
<template is="dom-if" if="[[!contentUrl]]">
<div generic-thumbnail="image"></div>
@@ -41,7 +41,6 @@
</template>
</template>
<!-- Video -->
- <files-safe-media type="video" class="content" controls autoplay="[[autoplay]]" src="[[videoUrl_(contentUrl, type)]]" poster="[[videoPoster]]" hidden="[[!isVideo_(type)]]"></files-safe-media>
<template is="dom-if" if="[[isVideo_(type)]]">
<template is="dom-if" if="[[!contentUrl]]">
<div class="thumbnail" hidden="[[!videoPoster]]">
@@ -50,13 +49,16 @@
<div hidden="[[videoPoster]]" generic-thumbnail="video"></div>
<div class="no-preview" i18n-content="QUICK_VIEW_NO_PLAYBACK_AVAILABLE"></div>
</template>
+ <template is="dom-if" if="[[contentUrl]]">
+ <files-safe-media type="video" class="content no-close-on-click" controls autoplay="[[autoplay]]" src="[[contentUrl]]" poster="[[videoPoster]]"></files-safe-media>
+ </template>
</template>
<!-- Audio -->
<template is="dom-if" if="[[isAudio_(type)]]">
- <files-safe-media type="image" id="audio-artwork" src="[[audioArtwork]]" hidden="[[!audioArtwork]]"></files-safe-media>
+ <files-safe-media type="image" id="audio-artwork" class="no-close-on-click" src="[[audioArtwork]]" hidden="[[!audioArtwork]]"></files-safe-media>
</template>
<div>
- <files-safe-media type="audio" autoplay="[[autoplay]]" controls src="[[audioUrl_(contentUrl, type)]]" hidden="[[!isAudio_(type)]]"></files-safe-media>
+ <files-safe-media type="audio" class="no-close-on-click" autoplay="[[autoplay]]" controls src="[[audioUrl_(contentUrl, type)]]" hidden="[[!isAudio_(type)]]"></files-safe-media>
</div>
<template is="dom-if" if="[[isAudio_(type)]]">
<template is="dom-if" if="[[!contentUrl]]">

Powered by Google App Engine
This is Rietveld 408576698