We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff45bd1 + 00888f8 commit b70e2f6Copy full SHA for b70e2f6
app/styles/crate.scss
@@ -117,7 +117,12 @@
117
text-decoration: none;
118
font-size: 120%;
119
}
120
- .vers { margin-left: 10px; }
+ .vers {
121
+ margin-left: 10px;
122
+ img {
123
+ margin-bottom: -4px;
124
+ }
125
126
127
.stats {
128
width: 15%;
app/templates/components/crate-row.hbs
@@ -1,7 +1,12 @@
1
<div class='desc'>
2
<div class='info'>
3
{{#link-to 'crate' crate.id}}{{ crate.name }}{{/link-to}}
4
- <span class='vers small'>{{ crate.max_version }}</span>
+ <span class='vers'>
5
+ <img
6
+ src="https://img.shields.io/crates/v/{{ crate.name }}.svg"
7
+ alt="{{ crate.max_version }}"
8
+ title="{{ crate.name }}’s current version badge" />
9
+ </span>
10
</div>
11
<div class='summary'>
12
<span class='small'>
0 commit comments