From 1d10d363043c6ecbdeffc700f856accbec5e726b Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Thu, 29 Dec 2022 13:58:04 -0600 Subject: [PATCH] Misc style improvements and code cleanup --- .../recent-videos/recent-videos.component.html | 2 +- .../recent-videos/recent-videos.component.scss | 8 +++++++- .../recent-videos/recent-videos.component.ts | 3 +-- src/app/create-playlist/create-playlist.component.html | 6 ++---- src/app/main/main.component.html | 2 +- src/app/player/player.component.html | 4 ++-- src/styles.scss | 10 ++++++++++ 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/src/app/components/recent-videos/recent-videos.component.html b/src/app/components/recent-videos/recent-videos.component.html index dd3ca3c..ac2c890 100644 --- a/src/app/components/recent-videos/recent-videos.component.html +++ b/src/app/components/recent-videos/recent-videos.component.html @@ -87,7 +87,7 @@
-
+
{{(file.type === 'audio' || file.isAudio) ? 'audiotrack' : 'movie'}} {{file.title}}
diff --git a/src/app/components/recent-videos/recent-videos.component.scss b/src/app/components/recent-videos/recent-videos.component.scss index 02e802c..1226a28 100644 --- a/src/app/components/recent-videos/recent-videos.component.scss +++ b/src/app/components/recent-videos/recent-videos.component.scss @@ -100,7 +100,7 @@ .remove-item-button { right: 10px; position: absolute; - top: 4px; + top: 0px; } .playlist-item-text { @@ -126,4 +126,10 @@ .hide { display: none !important; +} + +.select-file-title { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } \ No newline at end of file diff --git a/src/app/components/recent-videos/recent-videos.component.ts b/src/app/components/recent-videos/recent-videos.component.ts index 8ee4be6..d124cfe 100644 --- a/src/app/components/recent-videos/recent-videos.component.ts +++ b/src/app/components/recent-videos/recent-videos.component.ts @@ -6,8 +6,7 @@ import { MatPaginator } from '@angular/material/paginator'; import { Subject } from 'rxjs'; import { distinctUntilChanged } from 'rxjs/operators'; import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop'; -import { MatChipListboxChange, MatChipOption } from '@angular/material/chips'; -import { KeyValue } from '@angular/common'; +import { MatChipListboxChange } from '@angular/material/chips'; @Component({ selector: 'app-recent-videos', diff --git a/src/app/create-playlist/create-playlist.component.html b/src/app/create-playlist/create-playlist.component.html index b1af298..921e36b 100644 --- a/src/app/create-playlist/create-playlist.component.html +++ b/src/app/create-playlist/create-playlist.component.html @@ -1,4 +1,3 @@ -

Create a playlist

Modify playlist

@@ -19,12 +18,11 @@
- -
-
\ No newline at end of file diff --git a/src/app/main/main.component.html b/src/app/main/main.component.html index f3e3797..3a33e99 100644 --- a/src/app/main/main.component.html +++ b/src/app/main/main.component.html @@ -79,7 +79,7 @@ Download - - +
@@ -51,7 +51,7 @@ - + diff --git a/src/styles.scss b/src/styles.scss index 5f63125..28812f3 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -143,3 +143,13 @@ $light-theme: mat-light-theme($light-primary, $light-accent, $light-warn); U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } + +.mat-mdc-icon { + align-items: center; + display: inline-flex; +} + +.mdc-icon-button { + align-items: center !important; + display: inline-flex !important; +} \ No newline at end of file