Skip to content

Commit da6a260

Browse files
committed
fix: standardized Icon sizes within library and added figma link to the page
1 parent efaf2b0 commit da6a260

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

projects/website-angular/src/app/community/icon-lib/icon-lib.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1>Icon Library</h1>
66
<p class="description">
77
Browse the Reactome icon library. Icons are used in Enhanced High Level Diagrams (EHLDs)
8-
to represent biological entities and concepts.
8+
to represent biological entities and concepts. Or take a look at the <a class="figma-link" href="https://www.figma.com/design/5M1QcYKfAsp87nvoJINxM8/Reactome-Icon-Library--Community-?node-id=236-2098&t=fLQHQc4bpMX4fcQt-0" target="_blank">Figma</a>!
99
</p>
1010
</header>
1111

@@ -90,7 +90,7 @@ <h1>Icon Library</h1>
9090
@for (icon of icons; track icon.stId) {
9191
<button class="icon-card" (click)="openDetail(icon)">
9292
<div class="icon-preview">
93-
<img [src]="iconSvgUrl(icon)" [alt]="icon.iconName || icon.name" loading="lazy" (error)="onImgError($event)" />
93+
<img [src]="iconSvgUrl(icon)" [alt]="icon.iconName || icon.name" loading="lazy" (error)="onImgError($event)" width="250" height="auto"/>
9494
</div>
9595
<span class="icon-name">{{ icon.iconName || icon.name }}</span>
9696
</button>

projects/website-angular/src/app/community/icon-lib/icon-lib.component.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
margin: 0;
3232
max-width: 640px;
3333
}
34+
35+
.figma-link {
36+
text-decoration: underline;
37+
cursor: pointer;
38+
}
3439
}
3540

3641
// Search bar

projects/website-angular/src/app/community/icon-lib/icon-lib.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit, OnDestroy } from '@angular/core';
2-
import { ActivatedRoute, Router } from '@angular/router';
2+
import { ActivatedRoute, Router, RouterLink } from '@angular/router';
33
import { Subject } from 'rxjs';
44
import { debounceTime, distinctUntilChanged, takeUntil } from 'rxjs/operators';
55
import { PageLayoutComponent } from '../../page-layout/page-layout.component';
@@ -49,7 +49,7 @@ interface ParsedReference {
4949

5050
@Component({
5151
selector: 'app-icon-lib',
52-
imports: [PageLayoutComponent],
52+
imports: [PageLayoutComponent, RouterLink],
5353
templateUrl: './icon-lib.component.html',
5454
styleUrl: './icon-lib.component.scss'
5555
})

0 commit comments

Comments
 (0)