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

Unified Diff: chrome/browser/resources/md_history/history_card_manager.html

Issue 1643693003: MD History: Implement search functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@patch_to_be_uploaded
Patch Set: Fix time-gap-separator insertion. Created 4 years, 10 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: chrome/browser/resources/md_history/history_card_manager.html
diff --git a/chrome/browser/resources/md_history/history_card_manager.html b/chrome/browser/resources/md_history/history_card_manager.html
index 7108a87abc6593da7befccbd5ac3cc9501c978e2..d33b9a76689bb0967f9216b5a5615aa0c986703e 100644
--- a/chrome/browser/resources/md_history/history_card_manager.html
+++ b/chrome/browser/resources/md_history/history_card_manager.html
@@ -17,6 +17,10 @@
display: block;
}
+ [hidden] {
+ display: none !important;
+ }
+
#overflow-menu {
@apply(--shadow-elevation-2dp);
border-radius: 2px;
@@ -40,11 +44,27 @@
paper-item:hover {
background: #eaeaea;
}
+
+ #no-results {
+ flex: 1;
+ align-items: center;
+ color: #b4b4b4;
+ display: flex;
+ font-size: 14px;
+ font-weight: 500;
+ justify-content: center;
+ }
</style>
+ <div id="no-results"
+ hidden$="{{!noResultsAvailable_(historyDataByDay_.length, loading)}}">
+ {{noResultsMessage_(searchTerm)}}
+ </div>
<iron-list items="{{historyDataByDay_}}" as="historyDay" id="infinite-list"
- on-scroll="scrollHandler_">
+ on-scroll="scrollHandler_"
+ hidden$="{{noResultsAvailable_(historyDataByDay_.length, loading)}}">
<template>
<history-card history-date="{{historyDay.date}}"
+ search-term="[[searchTerm]]"
history-items="{{historyDay.historyItems}}">
</history-card>
</template>

Powered by Google App Engine
This is Rietveld 408576698