OLD | NEW |
1 <link rel="import" href="chrome://resources/html/polymer.html"> | 1 <link rel="import" href="chrome://resources/html/polymer.html"> |
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> | 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-coll
apse.html"> |
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
4 <link rel="import" href="chrome://history/constants.html"> | 4 <link rel="import" href="chrome://history/constants.html"> |
5 <link rel="import" href="chrome://history/history_item.html"> | 5 <link rel="import" href="chrome://history/history_item.html"> |
6 <link rel="import" href="chrome://history/shared_style.html"> | 6 <link rel="import" href="chrome://history/shared_style.html"> |
7 | 7 |
8 <dom-module id="history-grouped-list"> | 8 <dom-module id="history-grouped-list"> |
9 <template> | 9 <template> |
10 <style include="shared-style"> | 10 <style include="shared-style"> |
11 :host { | 11 :host { |
12 display: block; | 12 display: block; |
13 overflow: auto; | 13 overflow: auto; |
14 position: relative; | 14 position: relative; |
15 } | 15 } |
16 | 16 |
17 #main-container { | 17 #main-container { |
| 18 @apply(--card-sizing); |
18 align-items: center; | 19 align-items: center; |
19 display: flex; | 20 display: flex; |
20 flex-direction: column; | 21 flex-direction: column; |
21 padding: var(--first-card-padding-top) var(--card-padding-side); | 22 padding-top: var(--first-card-padding-top); |
22 } | 23 } |
23 | 24 |
24 .domain-heading { | 25 .domain-heading { |
25 align-items: center; | 26 align-items: center; |
26 display: flex; | 27 display: flex; |
27 height: var(--item-height); | 28 height: var(--item-height); |
28 padding: 0 20px; | 29 padding: 0 20px; |
29 } | 30 } |
30 | 31 |
31 .domain-count { | 32 .domain-count { |
(...skipping 22 matching lines...) Expand all Loading... |
54 | 55 |
55 .domain-heading-text { | 56 .domain-heading-text { |
56 flex: 1 1 0; | 57 flex: 1 1 0; |
57 } | 58 } |
58 | 59 |
59 .dropdown-indicator { | 60 .dropdown-indicator { |
60 max-width: 16px; | 61 max-width: 16px; |
61 } | 62 } |
62 | 63 |
63 history-item { | 64 history-item { |
64 --border-style: none; | |
65 padding-left: 20px; | 65 padding-left: 20px; |
66 } | 66 } |
67 </style> | 67 </style> |
68 <div id="no-results" class="centered-message" | 68 <div id="no-results" class="centered-message" |
69 hidden$="[[hasResults_(groupedHistoryData_.length)]]"> | 69 hidden$="[[hasResults_(groupedHistoryData_.length)]]"> |
70 [[noResultsMessage_(searchedTerm, querying)]] | 70 [[noResultsMessage_(searchedTerm, querying)]] |
71 </div> | 71 </div> |
72 <div id="main-container" | 72 <div id="main-container" |
73 hidden$="[[!hasResults_(groupedHistoryData_.length)]]"> | 73 hidden$="[[!hasResults_(groupedHistoryData_.length)]]"> |
74 <template is="dom-repeat" items="[[groupedHistoryData_]]" as="group" | 74 <template is="dom-repeat" items="[[groupedHistoryData_]]" as="group" |
(...skipping 19 matching lines...) Expand all Loading... |
94 <iron-collapse opened="{{domain.expanded}}" id="collapse"> | 94 <iron-collapse opened="{{domain.expanded}}" id="collapse"> |
95 <template is="dom-if" if="[[domain.rendered]]"> | 95 <template is="dom-if" if="[[domain.rendered]]"> |
96 <template is="dom-repeat" items="[[domain.visits]]" | 96 <template is="dom-repeat" items="[[domain.visits]]" |
97 as="item" initial-count="5" index-as="itemIndex"> | 97 as="item" initial-count="5" index-as="itemIndex"> |
98 <history-item item="[[item]]" | 98 <history-item item="[[item]]" |
99 starred="[[item.starred]]" | 99 starred="[[item.starred]]" |
100 selected="{{item.selected}}" | 100 selected="{{item.selected}}" |
101 has-time-gap="[[needsTimeGap_( | 101 has-time-gap="[[needsTimeGap_( |
102 groupIndex, domainIndex, itemIndex)]]" | 102 groupIndex, domainIndex, itemIndex)]]" |
103 search-term="[[searchedTerm]]" | 103 search-term="[[searchedTerm]]" |
104 number-of-items="[[historyData.length]]"> | 104 number-of-items="[[historyData.length]]" |
| 105 embedded> |
105 </history-item> | 106 </history-item> |
106 </template> | 107 </template> |
107 </template> | 108 </template> |
108 </iron-collapse> | 109 </iron-collapse> |
109 </div> | 110 </div> |
110 </template> | 111 </template> |
111 </div> | 112 </div> |
112 </template> | 113 </template> |
113 </div> | 114 </div> |
114 </template> | 115 </template> |
115 <script src="chrome://history/grouped_list.js"></script> | 116 <script src="chrome://history/grouped_list.js"></script> |
116 </dom-module> | 117 </dom-module> |
OLD | NEW |