Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit 4850f1a

Browse files
committed
align languages in help wanted card and only display impact and other info if present
1 parent abc948c commit 4850f1a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/components/help-wanted/card/help-wanted-card.styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
dl {
3636
margin-bottom: 0.25rem;
37-
padding: 0.75rem 0.75rem;
37+
padding: 0.75rem 0rem;
3838

3939
> div {
4040
display: inline-block;

src/app/components/help-wanted/card/help-wanted-card.template.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ <h3><a external-link [href]="item.projectURL">{{ item.title }}</a></h3>
33
<small>Last updated {{ item.updated | date: "MMM d 'at' h':'mm a"}}</small>
44
<p class="help-wanted-card-description">{{ item.description | truncate : 250}}</p>
55
<dl *ngIf="!mobile">
6-
<div>
6+
<div *ngIf="item.languages">
77
<dt>Language:</dt>
88
<dd>{{ item.languages.join(', ') }}</dd>
99
</div>
1010

11-
<div>
11+
<div *ngIf="item.skill">
1212
<dt>Skill Level:</dt>
1313
<dd>{{ item.skill | capitalize }}</dd>
1414
</div>
1515

16-
<div>
16+
<div *ngIf="item.effort">
1717
<dt>Effort:</dt>
1818
<dd>{{ item.effort }}</dd>
1919
</div>
20-
21-
<div>
20+
21+
<div *ngIf="item.impact">
2222
<dt>Impact:</dt>
2323
<dd>{{ item.impact | capitalize }}</dd>
2424
</div>
25-
25+
2626
</dl>
2727
<div class="help-wanted-card-actions">
2828
<a external-link [href]="item.projectURL" *ngIf="item.projectURL"><button class="usa-button button--tertiary">Project Details</button></a>

0 commit comments

Comments
 (0)