diff --git a/server/app/api.py b/server/app/api.py
index 1906b985..226e1d77 100644
--- a/server/app/api.py
+++ b/server/app/api.py
@@ -269,6 +269,7 @@ def get_album_tracks(title: str, artist: str):
"count": len(songs),
"duration": "56 Minutes",
"image": songs[0].image,
+ "date": songs[0].date,
"artist": songs[0].albumartist,
"artist_image": "http://127.0.0.1:8900/images/artists/"
+ songs[0].albumartist.replace("/", "::")
diff --git a/src/assets/css/BottomBar/BottomBar.scss b/src/assets/css/BottomBar/BottomBar.scss
index ec84aabc..30a71672 100644
--- a/src/assets/css/BottomBar/BottomBar.scss
+++ b/src/assets/css/BottomBar/BottomBar.scss
@@ -1,5 +1,6 @@
.b-bar {
height: 100%;
+ border-top: solid 1px $gray;
.grid {
display: grid;
@@ -62,12 +63,12 @@
width: 100%;
.durationx {
- background-color: #97979725;
- // border: solid 1px rgba(255, 255, 255, 0.253);
+ background-color: $black;
padding: $smaller;
- border-radius: 0.75rem;
+ border-radius: 0.5rem;
margin: 0 $small 0 $small;
font-size: 0.8rem;
+ min-width: 2.5rem;
}
}
}
diff --git a/src/assets/css/ProgressBar.scss b/src/assets/css/ProgressBar.scss
index ddac3efb..8cb6566c 100644
--- a/src/assets/css/ProgressBar.scss
+++ b/src/assets/css/ProgressBar.scss
@@ -5,7 +5,7 @@ input[type="range"] {
height: 0.3rem;
border-radius: 5px;
background-size: 0 100%;
- background: rgb(59, 57, 57) linear-gradient($blue, $blue) no-repeat;
+ background: $black linear-gradient($blue, $blue) no-repeat;
}
/* Input Thumb */
diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss
index b0f6cf65..938dfe4f 100644
--- a/src/assets/css/global.scss
+++ b/src/assets/css/global.scss
@@ -40,7 +40,7 @@ a {
}
.border {
- border: solid 2px #27262654;
+ border: solid 1px $gray;
}
.border-sm {
diff --git a/src/components/AlbumView/Header.vue b/src/components/AlbumView/Header.vue
index a6793e65..6baf520b 100644
--- a/src/components/AlbumView/Header.vue
+++ b/src/components/AlbumView/Header.vue
@@ -11,7 +11,7 @@
- {{ album_info.count }} Tracks • {{ album_info.duration }} • 2021
+ {{ album_info.count }} Tracks • {{ album_info.duration }} • {{album_info.date}}
@@ -58,7 +58,7 @@ export default {
overflow: hidden;
display: flex;
align-items: center;
- padding: 1rem;
+ padding: $small;
height: 100%;
background-image: url("../../assets/images/abg.webp");
background-position: 0% 60%;
@@ -74,7 +74,7 @@ export default {
.top {
.h {
- color: rgba(255, 255, 255, 0.795);
+ color: #ffffffcb;
}
.title {
font-size: 2rem;
@@ -94,9 +94,16 @@ export default {
}
.bottom {
+ position: relative;
+
.stats {
+ background-color: #1f1f1f8e;
+ padding: $small;
+ border-radius: $small;
+ position: absolute;
+ right: 0;
+ bottom: 0;
font-weight: bold;
- display: none;
}
.play {
@@ -106,7 +113,6 @@ export default {
align-items: center;
background: $highlight-blue;
padding: $small;
- margin: $small 0;
cursor: pointer;
.icon {
diff --git a/src/components/BottomBar/BottomBar.vue b/src/components/BottomBar/BottomBar.vue
index 0b550551..a8dc7132 100644
--- a/src/components/BottomBar/BottomBar.vue
+++ b/src/components/BottomBar/BottomBar.vue
@@ -1,5 +1,5 @@
-
+
-
@@ -100,9 +100,9 @@ function changeTab(tab) {
height: 100%;
position: absolute;
grid-area: tabs;
- // padding: $small 0;
border-radius: 0;
overflow: hidden;
+ border-left: solid 1px $gray;
}
}
}
diff --git a/src/components/shared/Progress.vue b/src/components/shared/Progress.vue
index 3563f8d7..63b55667 100644
--- a/src/components/shared/Progress.vue
+++ b/src/components/shared/Progress.vue
@@ -1,11 +1,11 @@
diff --git a/src/composables/playAudio.js b/src/composables/playAudio.js
index ed45a8ba..9c736ef3 100644
--- a/src/composables/playAudio.js
+++ b/src/composables/playAudio.js
@@ -14,8 +14,7 @@ const playing = ref(state.is_playing);
const url = "http://0.0.0.0:9876/file/";
const playAudio = (trackid) => {
- const elem = document.getElementsByClassName('progress-bar')[0];
- const bottom_elem = document.getElementsByClassName('progress-bar')[1];
+ const elem = document.getElementById('progress');
const full_path = url + encodeURIComponent(trackid);
@@ -32,11 +31,10 @@ const playAudio = (trackid) => {
);
audio.ontimeupdate = () => {
current_time.value = audio.currentTime;
- pos.value = (audio.currentTime / audio.duration) * 1000;
+ pos.value = (audio.currentTime / audio.duration) * 100;
let bg_size = ((audio.currentTime / audio.duration) * 100)
elem.style.backgroundSize = `${bg_size}% 100%`;
- bottom_elem.style.backgroundSize = `${bg_size}% 100%`;
};
})
.catch((err) => console.log(err));
@@ -54,7 +52,7 @@ function playPrev() {
}
function seek(position) {
- audio.currentTime = (position / 1000) * audio.duration;
+ audio.currentTime = (position / 100) * audio.duration;
}
function playPause() {