Skip to content

Commit 4969e7a

Browse files
authored
Merge pull request #1243 from someguynamedmatt/alignments
[UI UPDATE]: Slight alignment tweak for the stats numbers on the
2 parents a891651 + 2a42f6e commit 4969e7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/styles/crate.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,10 @@
369369
font-size: 160%;
370370
font-weight: bold;
371371
margin-bottom: 4px;
372+
&__align {
373+
position: relative;
374+
bottom: 0.4rem;
375+
}
372376
}
373377
}
374378

app/templates/crate/version.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,14 @@
252252
<div class='stat'>
253253
<span class='num'>
254254
{{svg-jar "download"}}
255-
{{format-num downloadsContext.downloads}}
255+
<span class="num__align">{{ format-num downloadsContext.downloads }}</span>
256256
</span>
257257
<span class='desc small'>Downloads all time</span>
258258
</div>
259259
<div class='stat'>
260260
<span class="{{if crate.versions.isPending 'loading'}} num">
261261
{{svg-jar "crate"}}
262-
{{crate.versions.length}}
262+
<span class="num__align">{{ crate.versions.length }}</span>
263263
</span>
264264
<span class='desc small'>Versions published</span>
265265
</div>

0 commit comments

Comments
 (0)