Skip to content

Commit 1f683a9

Browse files
bikeshedderTurbo87
authored andcommitted
Show features of dependencies
1 parent 8a635a1 commit 1f683a9

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

app/components/dependency-list/row.hbs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@
3535
</span>
3636
</div>
3737

38+
{{#if (or (not @dependency.default_features) @dependency.features)}}
39+
<div local-class="features" data-test-features>
40+
{{#if (not @dependency.default_features)}}
41+
default-features=false
42+
{{/if}}
43+
{{#if @dependency.features}}
44+
features={{@dependency.features}}
45+
{{/if}}
46+
</div>
47+
{{/if}}
48+
3849
{{#if (or this.description this.loadCrateTask.isRunning)}}
3950
<div local-class="description" data-test-description>
4051
{{#if this.loadCrateTask.isRunning}}

app/components/dependency-list/row.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@
117117
}
118118
}
119119

120+
.features {
121+
margin-top: 10px;
122+
color: var(--crate-color);
123+
font-size: 80%;
124+
}
125+
120126
.description {
121127
margin-top: 10px;
122128
color: var(--crate-color);

0 commit comments

Comments
 (0)