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
+17 -2
View File
@@ -9,14 +9,20 @@
<div class="title">
{{ setting.title }}
</div>
<div class="options"><Switch /></div>
<div class="options">
<Switch
v-if="setting.type == SettingType.switch"
@click="setting.action()"
:state="setting.source()"
/>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
import { SettingGroup } from "@/interfaces/settings";
import { SettingGroup, SettingType } from "@/interfaces/settings";
import Switch from "./Components/Switch.vue";
defineProps<{
@@ -30,6 +36,10 @@ defineProps<{
gap: $small;
margin-top: 2rem;
&:first-child {
margin-top: 0;
}
h4 {
margin: $small auto;
}
@@ -39,6 +49,11 @@ defineProps<{
font-size: 0.9rem;
}
.setting {
display: grid;
gap: 1rem;
}
.setting > * {
display: grid;
grid-template-columns: 1fr max-content;