Permalink
Browse files

Bug 1139207 - [RTL] "Call Log" truncates long contacts name at the be…

…ginning of the name. Use bdi to ellipsis content. r=drs
  • Loading branch information...
azasypkin authored and rvandermeulen committed Mar 11, 2015
1 parent c885d11 commit 6542703742aef7a20cc3119f981fa33355e1e26c
@@ -525,17 +525,15 @@ var CallLog = {
}
}
primInfoMain.appendChild(bdi);
var retryCount = document.createElement('span');
retryCount.className = 'retry-count';
primInfo.appendChild(primInfoMain);
if (group.retryCount && group.retryCount > 1) {
var retryCount = document.createElement('span');
retryCount.className = 'retry-count';
retryCount.textContent = '(' + group.retryCount + ')';
primInfo.appendChild(retryCount);
}
primInfo.appendChild(primInfoMain);
primInfo.appendChild(retryCount);
var phoneNumberAdditionalInfo = '';
var phoneNumberTypeL10nId = null;
if (contact && contact.matchingTel) {
@@ -163,7 +163,7 @@ ol, ul {
}
.log-item .primary-info {
text-overflow: ellipsis;
display: flex;
}
.log-item a > p {
@@ -175,7 +175,13 @@ ol, ul {
}
.log-item .primary-info-main {
min-width: 0;
}
.log-item .primary-info-main bdi {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -378,11 +378,13 @@ suite('dialer/call_log', function() {
// Retry count.
var retryCount = groupDOM.querySelector('.retry-count');
assert.ok(retryCount, 'Retry count ok');
if (group.retryCount > 1) {
assert.isNotNull(retryCount);
assert.equal(
retryCount.innerHTML,
'(' + group.retryCount + ')');
} else {
assert.isNull(retryCount);
}
if (callback) {
callback();

0 comments on commit 6542703

Please sign in to comment.