Merge "ChangeScreen2: Display ellipsis when owner name is long"

This commit is contained in:
Edwin Kempin
2013-08-30 07:28:03 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 2 deletions

View File

@@ -660,9 +660,11 @@ public class ChangeScreen2 extends Screen {
private void renderOwner(ChangeInfo info) {
// TODO info card hover
ownerText.setInnerText(info.owner().name() != null
String name = info.owner().name() != null
? info.owner().name()
: Gerrit.getConfig().getAnonymousCowardName());
: Gerrit.getConfig().getAnonymousCowardName();
ownerText.setInnerText(name);
ownerText.setTitle(name);
}
private void renderSubmitType(String action) {

View File

@@ -61,6 +61,10 @@ limitations under the License.
position: absolute;
top: 0;
left: 29px;
width: 245px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.idStatus {
position: absolute;