File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 111
111
@include justify-content (space-between );
112
112
@include align-items (center );
113
113
114
+ span {
115
+ overflow : hidden ;
116
+ text-overflow : ellipsis ;
117
+ white-space : nowrap ;
118
+ }
119
+
114
120
img { vertical-align : middle ; }
115
121
}
116
122
li a :hover { background-color : darken ($main-bg-dark , 5% ); }
123
129
}
124
130
}
125
131
126
- #home-crates > div { @include flex (1 ); }
132
+ #home-crates > div {
133
+ @include flex (1 );
134
+
135
+ // flexbox trick to help truncate text and prevent overflow
136
+ // https://css-tricks.com/flexbox-truncated-text/
137
+ min-width : 0 ;
138
+ }
Original file line number Diff line number Diff line change 2
2
{{ #each crates as |crate |}}
3
3
<li >
4
4
{{ #link-to ' crate' crate class =' name' }}
5
- {{ crate.name }} ({{ crate.max_version }} )
5
+ < span > {{ crate.name }} ({{ crate.max_version }} )</ span >
6
6
<img class =" right-arrow" src =" /assets/right-arrow.png" />
7
7
{{ /link-to }}
8
8
</li >
You can’t perform that action at this time.
0 commit comments