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

Side by Side Diff: chrome/browser/resources/md_history/synced_device_card.html

Issue 2318343004: MD History: Truncate long search terms in card title box (Closed)
Patch Set: rebase Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/md_history/shared_style.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 1 <link rel="import" href="chrome://resources/cr_elements/icons.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <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-collapse/iron-coll apse.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/shadow.htm l">
7 <link rel="import" href="chrome://resources/html/icon.html"> 7 <link rel="import" href="chrome://resources/html/icon.html">
8 <link rel="import" href="chrome://history/browser_service.html"> 8 <link rel="import" href="chrome://history/browser_service.html">
9 <link rel="import" href="chrome://history/constants.html"> 9 <link rel="import" href="chrome://history/constants.html">
10 <link rel="import" href="chrome://history/searched_label.html"> 10 <link rel="import" href="chrome://history/searched_label.html">
11 <link rel="import" href="chrome://history/shared_style.html"> 11 <link rel="import" href="chrome://history/shared_style.html">
12 12
13 <dom-module id="history-synced-device-card"> 13 <dom-module id="history-synced-device-card">
14 <template> 14 <template>
15 <style include="shared-style"> 15 <style include="shared-style">
16 :host { 16 :host {
17 @apply(--card-sizing); 17 @apply(--card-sizing);
18 display: block; 18 display: block;
19 padding-bottom: var(--card-padding-between); 19 padding-bottom: var(--card-padding-between);
20 } 20 }
21 21
22 #card-heading { 22 #card-heading {
23 -webkit-padding-end: 0;
23 cursor: pointer; 24 cursor: pointer;
24 justify-content: space-between; 25 justify-content: space-between;
25 } 26 }
26 27
27 #tab-item-list { 28 #tab-item-list {
28 padding: 8px 0; 29 padding: 8px 0;
29 } 30 }
30 31
31 #last-update-time { 32 #last-update-time {
32 color: var(--secondary-text-color); 33 color: var(--secondary-text-color);
33 } 34 }
34 35
36 #title-left-content {
37 display: flex;
38 overflow: hidden;
39 }
40
41 #device-name {
42 overflow: hidden;
43 padding-right: 3px;
44 text-overflow: ellipsis;
45 }
46
35 #right-buttons { 47 #right-buttons {
36 -webkit-margin-end: 4px; 48 -webkit-margin-end: 4px;
37 } 49 }
38 50
39 #menu-button { 51 #menu-button {
40 -webkit-margin-end: 8px; 52 -webkit-margin-end: 8px;
41 } 53 }
42 54
43 #collapse { 55 #collapse {
44 overflow: hidden; 56 overflow: hidden;
(...skipping 15 matching lines...) Expand all
60 #window-separator { 72 #window-separator {
61 background-color: var(--card-border-color); 73 background-color: var(--card-border-color);
62 height: 1px; 74 height: 1px;
63 margin: 5px auto; 75 margin: 5px auto;
64 width: 80%; 76 width: 80%;
65 } 77 }
66 </style> 78 </style>
67 <div id="history-item-container"> 79 <div id="history-item-container">
68 <div class="card-title" id="card-heading" aria-expanded$="[[opened]]" 80 <div class="card-title" id="card-heading" aria-expanded$="[[opened]]"
69 aria-controls="collapse" on-tap="toggleTabCard"> 81 aria-controls="collapse" on-tap="toggleTabCard">
70 <div> 82 <div id="title-left-content">
71 [[device]] 83 <div id="device-name">
84 [[device]]
85 </div>
72 <span id="last-update-time">[[lastUpdateTime]]</span> 86 <span id="last-update-time">[[lastUpdateTime]]</span>
73 </div> 87 </div>
74 <div id="right-buttons"> 88 <div id="right-buttons">
75 <button is="paper-icon-button-light" id="menu-button" 89 <button is="paper-icon-button-light" id="menu-button"
76 class="more-vert-button" on-tap="onMenuButtonTap_" 90 class="more-vert-button" on-tap="onMenuButtonTap_"
77 title="$i18n{moreActionsButton}"> 91 title="$i18n{moreActionsButton}">
78 <div></div> 92 <div></div>
79 <div></div> 93 <div></div>
80 <div></div> 94 <div></div>
81 </button> 95 </button>
(...skipping 20 matching lines...) Expand all
102 <div id="window-separator" 116 <div id="window-separator"
103 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]"> 117 hidden$="[[!isWindowSeparatorIndex_(index, separatorIndexes)]]">
104 </div> 118 </div>
105 </template> 119 </template>
106 </div> 120 </div>
107 </iron-collapse> 121 </iron-collapse>
108 </div> 122 </div>
109 </template> 123 </template>
110 <script src="chrome://history/synced_device_card.js"></script> 124 <script src="chrome://history/synced_device_card.js"></script>
111 </dom-module> 125 </dom-module>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/shared_style.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698