add comments to some store functions

- some refactors to modals
This commit is contained in:
geoffrey45
2022-05-13 20:50:58 +03:00
parent 2e274dac1d
commit 8b62fe78fa
12 changed files with 106 additions and 81 deletions
+13 -3
View File
@@ -1,5 +1,9 @@
<template>
<div class="p-card rounded" id="new-playlist-card">
<div
class="p-card rounded"
id="new-playlist-card"
@click="Modal.showNewPlaylistModal()"
>
<div class="gradient rounded"></div>
<div class="plus image p-image"></div>
<div>New Playlist</div>
@@ -7,6 +11,12 @@
</div>
</template>
<script setup lang="ts">
import useModalStore from "../../stores/modal";
const Modal = useModalStore();
</script>
<style lang="scss">
#new-playlist-card {
display: grid;
@@ -35,10 +45,10 @@
&:hover {
.gradient {
background-size: 300rem;
background-size: 29rem;
}
.image {
transform: rotate(270deg);
transform: rotate(180deg);
}
}
}
+1 -1
View File
@@ -48,8 +48,8 @@ const props = defineProps<{
width: 100%;
padding: 0.75rem;
transition: all 0.25s ease;
background-position: -10rem;
position: relative;
background-color: #1c1c1e80;
.p-image {
min-width: 100%;