SSH key ellipsis on mobile

This commit is contained in:
Phil Hughes 2016-03-03 08:47:44 +00:00 committed by Robert Speicher
parent 0f237dd8fa
commit 2c760487be
2 changed files with 16 additions and 2 deletions

View File

@ -146,6 +146,20 @@
}
}
.key-list-item {
.key-list-item-info {
@media (min-width: $screen-sm-min) {
float: left;
}
}
.description {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
.key-icon {
color: $ssh-key-icon-color;
font-size: $ssh-key-icon-size;

View File

@ -1,7 +1,7 @@
%li.key-list-item
.pull-left.append-right-10
= icon 'key', class: "key-icon"
.pull-left
= icon 'key', class: "key-icon hidden-xs"
.key-list-item-info
= link_to path_to_key(key, is_admin), class: "title" do
= key.title
.description