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