add now playing card settings

+ move left sidebar to separate component
This commit is contained in:
geoffrey45
2022-08-19 21:28:46 +03:00
parent 44bb30fe9f
commit ade8edcba2
18 changed files with 135 additions and 288 deletions
+7 -2
View File
@@ -7,6 +7,11 @@
:max="q.duration.full"
step="0.1"
@change="seek()"
:style="{
backgroundSize: `${
(q.duration.current / (q.currenttrack.length || 0)) * 100
}% 100%`,
}"
/>
</template>
@@ -15,9 +20,9 @@ import useQStore from "../../../stores/queue";
const q = useQStore();
const seek = () => {
const elem = <HTMLFormElement>document.getElementById("progress");
const elem = document.getElementById("progress") as HTMLInputElement;
const value = elem.value;
q.seek(value);
q.seek(value as unknown as number);
};
</script>