improve component spacing

+ bump up folder and album page gap to ~ 1rem
+ test out noise texture on album img on album page
+
~ although i'm still annoyed about the scrollbar space irregularities (will fix someday)
This commit is contained in:
geoffrey45
2022-08-01 00:23:39 +03:00
parent b522069d8e
commit 8fa0516b56
10 changed files with 155 additions and 63 deletions
+7
View File
@@ -15,6 +15,7 @@
v-motion-slide-from-left
class="rounded shadow-lg"
/>
<img class="filter rounded" src="../../assets/images/noise-texture.svg" alt="" />
</div>
<div class="info" :class="{ nocontrast: isLight() }">
<div class="top" v-motion-slide-from-top>
@@ -187,6 +188,7 @@ function theyContrast(color1: string, color2: string) {
.art {
display: flex;
align-items: flex-end;
position: relative;
img {
height: 16rem;
@@ -194,6 +196,11 @@ function theyContrast(color1: string, color2: string) {
object-fit: cover;
transition: all 0.2s ease-in-out;
}
.filter {
position: absolute;
// display: none;
}
}
.nocontrast {
+12 -17
View File
@@ -1,37 +1,32 @@
<template>
<div class="f-container rounded" :class="{ no_f: !props.folders.length }">
<div id="f-items" v-if="props.folders.length">
<div class="f-container rounded">
<div id="f-items">
<FolderItem
v-for="folder in props.folders"
:key="folder"
v-for="folder in folders"
:key="JSON.stringify(folder)"
:folder="folder"
/>
</div>
</div>
</template>
<script setup>
<script setup lang="ts">
import { Folder } from "@/interfaces";
import FolderItem from "./FolderItem.vue";
const props = defineProps({
folders: {
type: Array,
required: true,
},
});
defineProps<{
folders: Folder[];
}>();
</script>
<style lang="scss">
.no_f {
display: none;
}
#f-items {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
gap: $medium;
border-bottom: 1px solid $gray3;
padding-bottom: .55rem;
padding: 1rem 0;
padding-top: $small;
margin-bottom: 1rem;
}
</style>
+2 -1
View File
@@ -130,9 +130,10 @@ function getTracks() {
}
.table {
width: 100%;
height: 100%;
overflow-y: hidden;
background-color: $gray5;
padding: $small 0;
.current {
a {
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<div
class="songlist-item rounded"
class="songlist-item"
:class="[
{ current: isCurrent },
{ contexton: context_on },