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

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

Issue 1880783002: MD History: Use computed functions for card borders and time gaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 8 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_list.html
diff --git a/chrome/browser/resources/md_history/history_list.html b/chrome/browser/resources/md_history/history_list.html
index 59cb64c8712f1443b86501d3bd51d9807637d0fd..9d38f3d802f472fccff903c1290eda81ad65e483 100644
--- a/chrome/browser/resources/md_history/history_list.html
+++ b/chrome/browser/resources/md_history/history_list.html
@@ -41,8 +41,9 @@
<history-item item="[[item]]"
starred="[[item.starred]]"
selected="{{item.selected}}"
- is-card-start="[[item.isFirstItem]]"
- is-card-end="[[item.isLastItem]]"
+ is-card-start="[[isCardStart_(item, index, historyData.length)]]"
+ is-card-end="[[isCardEnd_(item, index, historyData.length)]]"
+ has-time-gap="[[needsTimeGap_(item, index, historyData.length)]]"
search-term="[[searchTerm]]"
number-of-items="[[historyData.length]]">
</history-item>
« no previous file with comments | « chrome/browser/resources/md_history/history_item.js ('k') | chrome/browser/resources/md_history/history_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698