Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion app/styles/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
@include justify-content(space-between);
@include align-items(center);

span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

img { vertical-align: middle; }
}
li a:hover { background-color: darken($main-bg-dark, 5%); }
Expand All @@ -123,4 +129,10 @@
}
}

#home-crates > div { @include flex(1); }
#home-crates > div {
@include flex(1);

// flexbox trick to help truncate text and prevent overflow
// https://css-tricks.com/flexbox-truncated-text/
min-width: 0;
}
2 changes: 1 addition & 1 deletion app/templates/components/crate-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#each crates as |crate|}}
<li>
{{#link-to 'crate' crate class='name'}}
{{ crate.name }} ({{ crate.max_version }})
<span>{{ crate.name }} ({{ crate.max_version }})</span>
<img class="right-arrow" src="/assets/right-arrow.png"/>
{{/link-to}}
</li>
Expand Down