try to fix scrollbar differences

+ add hover states to albumcard and artist card
This commit is contained in:
geoffrey45
2022-09-21 16:35:50 +03:00
committed by Mungai Njoroge
parent 097c2b4a83
commit 45d91f0382
7 changed files with 43 additions and 22 deletions
+4 -4
View File
@@ -59,9 +59,9 @@
#acontent {
grid-area: content;
overflow: hidden scroll;
margin-right: -1rem;
padding-right: calc($medium - 1px);
overflow: hidden auto;
margin-right: calc(0rem - ($medium + 2px));
padding-right: calc($medium);
.nav {
margin: $small;
@@ -112,4 +112,4 @@
.b-bar {
grid-area: bottombar;
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
::-webkit-scrollbar {
width: $smaller;
width: 3px;
}
/* Track */
+9 -1
View File
@@ -2,10 +2,18 @@
@-moz-document url-prefix() {
#acontent {
margin-right: -1rem;
margin-right: calc(-1rem + 1px);
padding-right: 1rem;
}
.header-list-layout {
margin-right: calc(0rem - ($medium + 4px)) !important;
.scrollable {
padding-right: calc(1rem - 3px) !important;
}
}
#app-grid.isSmall,
#app-grid.disableSidebar {
#acontent {
+6 -3
View File
@@ -28,9 +28,12 @@ defineProps<{
.result-item {
display: grid;
gap: $small;
padding: $small;
transition: all 0.5s ease;
border-radius: 0.7rem;
padding: $medium;
border-radius: 1rem;
&:hover {
background-color: $gray4;
}
img {
width: 100%;
+13 -10
View File
@@ -1,12 +1,8 @@
<template>
<div class="artist-card" :class="{ _is_on_sidebar: alt }">
<img
class="artist-image shadow-sm"
:src="imguri + artist.image"
loading="lazy"
/>
<div>
<p class="artist-name t-center">{{ artist.name }}</p>
<img class="artist-image circular" :src="imguri + artist.image" loading="lazy" />
<div class="artist-name t-center">
{{ artist.name }}
</div>
</div>
</template>
@@ -29,14 +25,21 @@ defineProps<{
overflow: hidden;
position: relative;
border-radius: 0.75rem;
border-radius: $medium;
display: grid;
gap: $small;
justify-content: center;
padding: 1.2rem 1rem !important;
font-size: 0.9rem;
font-weight: bolder;
&:hover {
background-color: $gray4;
}
.artist-image {
width: 100%;
border-radius: 60%;
margin-bottom: $small;
// margin-bottom: $small;
transition: all 0.5s ease-in-out;
object-fit: cover;
}
+8 -1
View File
@@ -6,7 +6,7 @@
:style="{ paddingTop: headerHeight - 64 + 16 + 'px' }"
@scroll="handleScroll"
>
<div v-bind="wrapperProps">
<div v-bind="wrapperProps" class="scrollable">
<div class="header rounded" style="height: 64px">
<div
ref="header"
@@ -88,6 +88,13 @@ function handleScroll(e: Event) {
<style lang="scss">
.header-list-layout {
margin-right: calc(0rem - ($medium));
.scrollable {
padding-right: calc(1rem - $small + 2px);
scrollbar-width: thin;
}
.header {
position: relative;
+2 -2
View File
@@ -22,8 +22,8 @@ import Main from "@/components/RightSideBar/Search/Main.vue";
}
.artists-results {
margin-right: $small;
margin-left: -$small;
margin-right: calc($medium + 1px);
margin-left: 0;
}
.search-results-grid {