style: some visual improvements

This commit is contained in:
4gray committed 2023-05-06 18:22:43 +02:00
1 parent b2c974d665
commit a72d111502
8 files changed
+13 -7

No files matched your search

@@ -39,7 +39,7 @@
>
</ng-container>
</div>
<span matListItemMeta>
<span matListItemMeta class="action-buttons" *ngIf="showActions">
<button
*ngIf="item.url || item.filePath"
mat-icon-button
@@ -45,3 +45,7 @@ mat-list-item {
}
}
}
.action-buttons {
align-self: center !important;
}
@@ -10,6 +10,8 @@ export class PlaylistItemComponent {
/** Playlist item */
@Input() item: PlaylistMeta;
@Input() showActions = true;
/** Emits on playlist selection */
@Output() playlistClicked: EventEmitter<string> = new EventEmitter();
@@ -30,6 +30,7 @@
<app-playlist-item
*ngFor="let item of playlists; last as last"
[item]="item"
[showActions]="!sidebarMode"
(editPlaylistClicked)="openInfoDialog($event)"
(playlistClicked)="getPlaylist($event)"
(refreshClicked)="refreshPlaylist($event)"
@@ -30,7 +30,7 @@
}
.favorites-icon {
margin-left: 16px;
padding-left: 36px;
}
#skeleton-container {
@@ -2,6 +2,7 @@ import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
import {
Component,
EventEmitter,
Input,
NgZone,
OnDestroy,
Output,
@@ -47,6 +48,8 @@ export class RecentPlaylistsComponent implements OnDestroy {
allPlaylistsLoaded$ = this.store.select(selectPlaylistsLoadingFlag);
@Input() sidebarMode = false;
/** IPC Renderer commands list with callbacks */
commandsList = [
new IpcCommand(
@@ -46,6 +46,7 @@
<ng-template #playlistsTemplate>
<app-recent-playlists
class="recent-playlists"
[sidebarMode]="true"
[class.electron]="dataService.isElectron"
(playlistClicked)="selectPlaylist()"
></app-recent-playlists>
@@ -22,15 +22,10 @@
.channels-count {
font-size: 0.8em;
color: #ccc;
text-transform: lowercase;
}
}
}
.mat-drawer-inner-container {
overflow: hidden;
}
.recent-playlists {
height: calc(100vh - 60px);
overflow: auto;