Skip to content

Commit 8a6b365

Browse files
committed
CrateList: Use fluid space scale
1 parent 2dedf6b commit 8a6b365

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

app/components/crate-list.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{!-- The extra div wrapper is needed for specificity issues with `margin` --}}
33
<ol local-class="list">
44
{{#each @crates as |crate index|}}
5-
<li local-class="row">
5+
<li>
66
<CrateRow @crate={{crate}} data-test-crate-row={{index}} />
77
</li>
88
{{/each}}

app/components/crate-list.module.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
margin: 0;
33
padding: 0;
44
list-style: none;
5-
}
65

7-
.row {
8-
&:not(:last-child) {
9-
margin-bottom: 15px;
6+
> * + * {
7+
margin-top: var(--space-s);
108
}
119
}

0 commit comments

Comments
 (0)