Skip to content

Commit

Permalink
feat(navigation): reorganize settings and account info layout for imp…
Browse files Browse the repository at this point in the history
…roved navigation
  • Loading branch information
4gray committed Dec 24, 2024
1 parent 973f94d commit 89f24af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/app/xtream-tauri/navigation/navigation.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,9 @@
<mat-icon matListItemIcon>favorite</mat-icon>
<span matListItemTitle>Favorites</span>
</a>
</mat-nav-list>

<mat-divider />

<a mat-list-item (click)="openSettings()">
<mat-icon matListItemIcon>settings</mat-icon>
<span matListItemTitle>{{ 'MENU.SETTINGS' | translate }}</span>
</a>

<mat-nav-list class="navigation-bottom">
<a mat-list-item (click)="openAccountInfo()">
<mat-icon matListItemIcon>account_circle</mat-icon>
<span matListItemTitle>Account Info</span>
Expand All @@ -87,4 +82,9 @@
<mat-icon matListItemIcon>info</mat-icon>
<span matListItemTitle>Playlist Info</span>
</a>

<a mat-list-item (click)="openSettings()">
<mat-icon matListItemIcon>settings</mat-icon>
<span matListItemTitle>{{ 'MENU.SETTINGS' | translate }}</span>
</a>
</mat-nav-list>
8 changes: 7 additions & 1 deletion src/app/xtream-tauri/navigation/navigation.component.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
:host {
padding: 10px;
display: block;
display: flex;
flex-direction: column;
height: 100%;
}

.mat-nav-list {
padding-top: 0;
}

.navigation-bottom {
margin-top: auto;
padding-bottom: 16px;
}

.active {
transition: all 0.2s ease;
background: rgba(63, 81, 181, 0.12);
Expand Down

0 comments on commit 89f24af

Please sign in to comment.