item._id.$oid === song._id.$oid
- );
-
- if (index == perks.queue.value.length - 1) {
- perks.next.value = perks.queue.value[0];
- } else {
- perks.next.value = perks.queue.value[index + 1];
- }
-
- localStorage.setItem(
- "next",
- JSON.stringify(perks.queue.value[index + 1])
- );
-
};
const resizeSongTitleWidth = () => {
try {
let a = songtitle.value.clientWidth;
-
+
songTitleWidth.value = a > minWidth.value * 4 ? a / 4 : a / 3;
} catch (error) {
return;
@@ -123,6 +110,8 @@ export default {
});
});
+ const playAudio = audio.playAudio;
+
return {
songtitle,
songTitleWidth,
@@ -147,25 +136,6 @@ export default {
}
}
-.folder .table table {
- border-collapse: collapse;
- text-transform: capitalize;
- position: relative;
- margin: 1rem;
-
- tbody tr {
- cursor: pointer;
- transition: all 0.5s ease;
-
- &:hover {
- td {
- background-color: rgba(255, 174, 0, 0.534);
- }
- transform: scale(0.99);
- }
- }
-}
-
.folder .table table td .album-art {
width: 3rem;
height: 3rem;
@@ -187,6 +157,8 @@ td,
th {
padding: 8px;
text-align: left;
+ outline: none;
+ border: none;
}
th {
@@ -210,4 +182,23 @@ td .artist {
font-weight: lighter;
margin-right: 0.5rem;
}
+
+.folder .table table {
+ border-collapse: collapse;
+ text-transform: capitalize;
+ position: relative;
+ margin: 1rem;
+
+ tbody tr {
+ cursor: pointer;
+ transition: all 0.5s ease;
+
+ &:hover {
+ & {
+ background-color: rgba(255, 174, 0, 0.534);
+ }
+ transform: scale(0.99);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/components/RightSideBar/NowPlaying.vue b/src/components/RightSideBar/NowPlaying.vue
index a744f93..5a18dfe 100644
--- a/src/components/RightSideBar/NowPlaying.vue
+++ b/src/components/RightSideBar/NowPlaying.vue
@@ -17,10 +17,23 @@
+
+
+
@@ -28,87 +41,191 @@
-
\ No newline at end of file
diff --git a/src/components/RightSideBar/UpNext.vue b/src/components/RightSideBar/UpNext.vue
index 4b9fd37..74460d6 100644
--- a/src/components/RightSideBar/UpNext.vue
+++ b/src/components/RightSideBar/UpNext.vue
@@ -3,7 +3,7 @@
COMING UP NEXT SEE ALL
- |