diff --git a/src/assets/icons/heart.fill.svg b/src/assets/icons/heart.fill.svg index 638cb3eb..cd520394 100644 --- a/src/assets/icons/heart.fill.svg +++ b/src/assets/icons/heart.fill.svg @@ -1,3 +1,3 @@ - + diff --git a/src/assets/icons/heart.svg b/src/assets/icons/heart.svg index 8d2427a5..b189bf74 100644 --- a/src/assets/icons/heart.svg +++ b/src/assets/icons/heart.svg @@ -1,3 +1,3 @@ - - + + diff --git a/src/assets/scss/Global/basic.scss b/src/assets/scss/Global/basic.scss index c1e5a9f8..c7d0e7e7 100644 --- a/src/assets/scss/Global/basic.scss +++ b/src/assets/scss/Global/basic.scss @@ -15,6 +15,15 @@ max-width: 100%; } +.ellip2 { + word-wrap: break-word; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; +} + .heading { font-size: 2rem; font-weight: bold; @@ -99,8 +108,6 @@ button { width: 2.5rem; } - - // POSITION .abs { @@ -134,4 +141,4 @@ button { .no-select { user-select: none; -} \ No newline at end of file +} diff --git a/src/components/AlbumView/Header.vue b/src/components/AlbumView/Header.vue index a92c646d..768e1fe5 100644 --- a/src/components/AlbumView/Header.vue +++ b/src/components/AlbumView/Header.vue @@ -32,7 +32,7 @@ Single Album -
+
{{ album.title }}
@@ -48,7 +48,10 @@ {{ formatSeconds(album.duration, true) }} - +
+ + +
@@ -85,6 +88,7 @@ import { isLight } from "@/composables/colors/album"; import { playSources } from "@/composables/enums"; import { Album } from "@/interfaces"; import { Routes } from "@/router/routes"; +import HeartSvg from "../shared/HeartSvg.vue"; import PlayBtnRect from "../shared/PlayBtnRect.vue"; @@ -130,6 +134,11 @@ useVisibility(albumheaderthing, handleVisibilityState); background-color: $black; align-items: flex-end; + .buttons { + display: flex; + gap: $small; + } + .big-img { height: calc(100%); width: 16rem; diff --git a/src/components/ArtistView/Header.vue b/src/components/ArtistView/Header.vue index d4fdf475..03c0a586 100644 --- a/src/components/ArtistView/Header.vue +++ b/src/components/ArtistView/Header.vue @@ -17,7 +17,7 @@ >
Artist
-
{{ artist.info.name }}
+
{{ artist.info.name }}
{{ artist.info.trackcount }} Track{{ `${artist.info.trackcount == 1 ? "" : "s"}` @@ -29,7 +29,10 @@ {{ formatSeconds(artist.info.duration, true) }}
- +
+ + +
@@ -54,6 +57,7 @@ import formatSeconds from "@/utils/useFormatSeconds"; import { isLight } from "@/composables/colors/album"; import { paths } from "@/config"; import { playSources } from "@/composables/enums"; +import HeartSvg from "@/components/shared/HeartSvg.vue"; const artist = useArtistPageStore(); @@ -68,11 +72,13 @@ const artist = useArtistPageStore(); .artist-page-header { height: 18rem; display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: 50% 50%; position: relative; .artist-img { + // border: solid red; height: 18rem; + width: 100%; img { height: 100%; @@ -120,12 +126,7 @@ const artist = useArtistPageStore(); .artist-name { font-size: 3rem; font-weight: bold; - - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - overflow: hidden; - text-overflow: ellipsis; + word-wrap: break-word; } .stats { @@ -136,5 +137,10 @@ const artist = useArtistPageStore(); .artist-info.nocontrast { color: $black; } + + .buttons { + display: flex; + gap: $small; + } } diff --git a/src/components/PlaylistView/Header.vue b/src/components/PlaylistView/Header.vue index 6a2d03e5..08bcc3e2 100644 --- a/src/components/PlaylistView/Header.vue +++ b/src/components/PlaylistView/Header.vue @@ -21,7 +21,7 @@ {{ formatSeconds(info.duration, true) }}
{{ info.name }}
-
PLAYLIST
+
Playlist
diff --git a/src/components/shared/HeartSvg.vue b/src/components/shared/HeartSvg.vue new file mode 100644 index 00000000..4720d55e --- /dev/null +++ b/src/components/shared/HeartSvg.vue @@ -0,0 +1,21 @@ + + + + + diff --git a/src/components/shared/SongItem.vue b/src/components/shared/SongItem.vue index ba6994ab..2b134d91 100644 --- a/src/components/shared/SongItem.vue +++ b/src/components/shared/SongItem.vue @@ -169,7 +169,6 @@ async function addToFav(trackhash: string) { background-color: $gray5; .index { - .text { transition-delay: 500ms; @@ -202,7 +201,6 @@ async function addToFav(trackhash: string) { } .index { - opacity: 0.5; font-size: 0.8rem; width: 100%; position: relative; @@ -211,7 +209,7 @@ async function addToFav(trackhash: string) { justify-content: center; .text { - opacity: 1; + opacity: 0.5; display: block; margin: auto 0; transition: all 0.25s; @@ -226,7 +224,6 @@ async function addToFav(trackhash: string) { align-content: center; transition: all 0.2s; transform: translateX(-1.5rem); - color: red; } } diff --git a/src/composables/usePlayFrom.ts b/src/composables/usePlayFrom.ts index ec709aaf..4f188a1f 100644 --- a/src/composables/usePlayFrom.ts +++ b/src/composables/usePlayFrom.ts @@ -47,7 +47,7 @@ export default async function play( useQueue.playFromAlbum( a_store.info.title, a_store.info.albumhash, - a_store.allTracks + a_store.srcTracks ); useQueue.play(); break;