Skip to content

Commit 0d693f2

Browse files
feat: Enhance header component with alert navigation and styling improvements
1 parent 39b4f27 commit 0d693f2

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

src/app/shared/components/alerts-list/alerts-list.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ $border-color: #2a2a4a;
5151
align-items: center;
5252
justify-content: center;
5353
gap: 8px;
54+
margin-top: 10px;
5455
color: $text-secondary;
5556

5657
.spinning {

src/app/shared/components/header/header.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="header">
2-
<div class="header-left">
2+
<div class="header-left" (click)="showAlerts()" style="cursor: pointer;">
33
<span class="logo">🔒</span>
44
<span class="title">GitHub Alerts</span>
55
</div>

src/app/shared/components/header/header.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ $border-color: #2a2a4a;
1919
.header-left {
2020
display: flex;
2121
align-items: center;
22+
cursor: pointer;
2223
gap: 8px;
24+
-webkit-app-region: no-drag;
2325

2426
.logo {
2527
font-size: 18px;

src/app/shared/components/header/header.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ export class HeaderComponent {
2020
this.refresh.emit();
2121
}
2222

23+
showAlerts(): void {
24+
this.viewChange.emit('alerts');
25+
}
26+
2327
showRepos(): void {
2428
this.viewChange.emit('repos');
2529
}

0 commit comments

Comments
 (0)