diff options
-rw-r--r-- | chrome/browser/resources/history.css | 15 | ||||
-rw-r--r-- | chrome/browser/resources/history.js | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/chrome/browser/resources/history.css b/chrome/browser/resources/history.css index cf80899..3fd0c37 100644 --- a/chrome/browser/resources/history.css +++ b/chrome/browser/resources/history.css @@ -92,11 +92,17 @@ html[dir=rtl] .entry-box { } .snippet { - -webkit-margin-start: 90px; /* Align it with .domain. */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + -webkit-margin-start: 110px; clear: both; + color: rgb(34, 34, 34); + display: -webkit-box; font-size: 12px; line-height: 1.6em; margin-bottom: 12px; + overflow: hidden; + text-overflow: ellipsis; } .entry .domain { @@ -134,9 +140,16 @@ html[dir='rtl'] .entry .title { .entry .time { color: #9a9a9a; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; width: 90px; } +.search-results .time { + width: 110px; +} + .entry input[type=checkbox] { -webkit-margin-end: 6px; -webkit-margin-start: 4px; diff --git a/chrome/browser/resources/history.js b/chrome/browser/resources/history.js index 688ee79..77db2a7 100644 --- a/chrome/browser/resources/history.js +++ b/chrome/browser/resources/history.js @@ -163,7 +163,7 @@ Page.prototype.getResultDOM = function(searchResultFlag) { node.appendChild(entryBox); if (searchResultFlag) { - time.textContent = this.dateShort; + time.appendChild(document.createTextNode(this.dateShort)); var snippet = createElementWithClassName('div', 'snippet'); this.addHighlightedText_(snippet, this.snippet_, |