Skip to content

Commit

Permalink
ui: fix session name overflow
Browse files Browse the repository at this point in the history
fixes #353
  • Loading branch information
pearkes committed Oct 15, 2014
1 parent a5e10db commit 333e1e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/app/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Ember.Handlebars.helper('sessionName', function(session) {
if (session.Name === "") {
return session.ID;
} else {
return new Handlebars.SafeString(session.Name + ' <small>' + session.ID + '</small>');
return new Handlebars.SafeString('<span>' + session.Name + '</span>' + ' <small>' + session.ID + '</small>');
}
});

Expand Down
11 changes: 11 additions & 0 deletions styles/_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@
font-size: 15px;
padding-top: 6px;

span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 35%;
float: left;
display:inline-block;
padding-right: 4px;
}

small {
display:inline-block;
padding-right: 8px;
padding-top: 2px;
font-size: 12px;
Expand Down

0 comments on commit 333e1e7

Please sign in to comment.