Skip to content

Commit

Permalink
fix image display
Browse files Browse the repository at this point in the history
  • Loading branch information
azouaoui-med committed Jan 31, 2023
1 parent e2ca588 commit b87ce88
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions src/styles/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
.sidebar {
color: $text-color;
overflow-x: hidden !important;
position: relative;

&::-webkit-scrollbar-thumb {
border-radius: 4px;
}
&:hover {
&::-webkit-scrollbar-thumb {
background-color: lighten($bg-color, 15);
}
}
&::-webkit-scrollbar {
width: 6px;
background-color: $bg-color;
}
height: 100%;
max-height: 100%;
overflow: hidden !important;

.image-wrapper {
overflow: hidden;
Expand All @@ -32,19 +21,42 @@
object-position: center;
}
}
&.has-bg-image .image-wrapper {
display: block;
&.has-bg-image {
.sidebar-layout {
background-color: rgba($bg-color, 0.85);
}
.image-wrapper {
display: block;
// filter: blur(3px);
}
}

.sidebar-layout {
height: auto;
height: 100%;
max-height: 100%;
min-height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
position: relative;
background-color: $bg-color;
z-index: 2;

&::-webkit-scrollbar-thumb {
border-radius: 4px;
}

&:hover {
&::-webkit-scrollbar-thumb {
background-color: lighten($bg-color, 15);
}
}

&::-webkit-scrollbar {
width: 6px;
background-color: $bg-color;
}

.sidebar-header {
height: $sidebar-header-height;
min-height: $sidebar-header-height;
Expand Down

0 comments on commit b87ce88

Please sign in to comment.