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

Side by Side Diff: chrome/browser/resources/settings/search_engines_page/search_engine_entry.html

Issue 2518193002: MD Settings: change how text wraps for long search engine titles (Closed)
Patch Set: dpapad@ review Created 4 years, 1 month 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 | « no previous file | chrome/test/data/webui/settings/search_engines_page_test.js » ('j') | 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/cr_action_menu/cr_action _menu.html"> 1 <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action _menu.html">
2 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 2 <link rel="import" href="chrome://resources/cr_elements/icons.html">
3 <link rel="import" href="chrome://resources/html/polymer.html"> 3 <link rel="import" href="chrome://resources/html/polymer.html">
4 <link rel="import" href="chrome://resources/html/icon.html"> 4 <link rel="import" href="chrome://resources/html/icon.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
6 <link rel="import" href="/search_engines_page/search_engine_dialog.html"> 6 <link rel="import" href="/search_engines_page/search_engine_dialog.html">
7 <link rel="import" href="/search_engines_page/search_engine_entry_css.html"> 7 <link rel="import" href="/search_engines_page/search_engine_entry_css.html">
8 <link rel="import" href="/search_engines_page/search_engines_browser_proxy.html" > 8 <link rel="import" href="/search_engines_page/search_engines_browser_proxy.html" >
9 <link rel="import" href="/settings_shared_css.html"> 9 <link rel="import" href="/settings_shared_css.html">
10 10
11 <dom-module id="settings-search-engine-entry"> 11 <dom-module id="settings-search-engine-entry">
12 <template> 12 <template>
13 <style include="settings-shared search-engine-entry"> 13 <style include="settings-shared search-engine-entry">
14 :host([is-default]) { 14 :host([is-default]) {
15 font-weight: 500; 15 font-weight: 500;
16 } 16 }
17 17
18 .name-column, 18 .column {
19 .keyword-column { 19 -webkit-margin-end: 8px;
20 flex: 3; 20 flex: 3;
21 word-break: break-word;
21 } 22 }
22 23
23 .url-column { 24 #url-column {
24 flex: 4; 25 flex: 4;
25 overflow: hidden; 26 overflow: hidden;
26 text-overflow: ellipsis; 27 text-overflow: ellipsis;
27 white-space: nowrap; 28 white-space: nowrap;
28 } 29 }
29 </style> 30 </style>
30 31
31 <template is="dom-if" if="[[showEditSearchEngineDialog_]]" restamp> 32 <template is="dom-if" if="[[showEditSearchEngineDialog_]]" restamp>
32 <settings-search-engine-dialog model="[[engine]]"> 33 <settings-search-engine-dialog model="[[engine]]">
33 </settings-search-engine-dialog> 34 </settings-search-engine-dialog>
34 </template> 35 </template>
35 <div class="list-item"> 36 <div class="list-item">
36 <div class="name-column"> 37 <div class="favicon-image"
37 <span class="favicon-image" 38 style="background-image: [[getIconSet_(engine.iconURL)]]"></div>
38 style="background-image: [[getIconSet_(engine.iconURL)]]"></span> 39 <div class="column">[[engine.displayName]]</div>
39 <span class="name">[[engine.displayName]]</span> 40 <div class="column">[[engine.keyword]]</div>
40 </div> 41 <div id="url-column">[[engine.url]]</div>
41 <div class="keyword-column">[[engine.keyword]]</div>
42 <div class="url-column">[[engine.url]]</div>
43 <paper-icon-button icon="cr:more-vert" tabindex$="[[tabindex]]" 42 <paper-icon-button icon="cr:more-vert" tabindex$="[[tabindex]]"
44 on-tap="onDotsTap_"> 43 on-tap="onDotsTap_">
45 </paper-icon-button> 44 </paper-icon-button>
46 <dialog is="cr-action-menu"> 45 <dialog is="cr-action-menu">
47 <button class="dropdown-item" role="option" on-tap="onMakeDefaultTap_" 46 <button class="dropdown-item" role="option" on-tap="onMakeDefaultTap_"
48 hidden$="[[!engine.canBeDefault]]" id="makeDefault"> 47 hidden$="[[!engine.canBeDefault]]" id="makeDefault">
49 $i18n{searchEnginesMakeDefault} 48 $i18n{searchEnginesMakeDefault}
50 </button> 49 </button>
51 <button class="dropdown-item" role="option" on-tap="onEditTap_" 50 <button class="dropdown-item" role="option" on-tap="onEditTap_"
52 hidden$="[[!engine.canBeEdited]]" 51 hidden$="[[!engine.canBeEdited]]"
53 id="edit">$i18n{searchEnginesEdit}</button> 52 id="edit">$i18n{searchEnginesEdit}</button>
54 <button class="dropdown-item" role="option" on-tap="onDeleteTap_" 53 <button class="dropdown-item" role="option" on-tap="onDeleteTap_"
55 hidden$="[[!engine.canBeRemoved]]" 54 hidden$="[[!engine.canBeRemoved]]"
56 id="delete">$i18n{searchEnginesRemoveFromList}</button> 55 id="delete">$i18n{searchEnginesRemoveFromList}</button>
57 </dialog> 56 </dialog>
58 </div> 57 </div>
59 </template> 58 </template>
60 <script src="search_engine_entry.js"></script> 59 <script src="search_engine_entry.js"></script>
61 </dom-module> 60 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/search_engines_page_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698