Skip to content

Commit b87ce88

Browse files
committed
fix image display
1 parent e2ca588 commit b87ce88

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

src/styles/_sidebar.scss

+29-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
.sidebar {
22
color: $text-color;
3-
overflow-x: hidden !important;
43
position: relative;
5-
6-
&::-webkit-scrollbar-thumb {
7-
border-radius: 4px;
8-
}
9-
&:hover {
10-
&::-webkit-scrollbar-thumb {
11-
background-color: lighten($bg-color, 15);
12-
}
13-
}
14-
&::-webkit-scrollbar {
15-
width: 6px;
16-
background-color: $bg-color;
17-
}
4+
height: 100%;
5+
max-height: 100%;
6+
overflow: hidden !important;
187

198
.image-wrapper {
209
overflow: hidden;
@@ -32,19 +21,42 @@
3221
object-position: center;
3322
}
3423
}
35-
&.has-bg-image .image-wrapper {
36-
display: block;
24+
&.has-bg-image {
25+
.sidebar-layout {
26+
background-color: rgba($bg-color, 0.85);
27+
}
28+
.image-wrapper {
29+
display: block;
30+
// filter: blur(3px);
31+
}
3732
}
3833

3934
.sidebar-layout {
40-
height: auto;
35+
height: 100%;
36+
max-height: 100%;
4137
min-height: 100%;
38+
overflow-y: auto;
4239
display: flex;
4340
flex-direction: column;
4441
position: relative;
4542
background-color: $bg-color;
4643
z-index: 2;
4744

45+
&::-webkit-scrollbar-thumb {
46+
border-radius: 4px;
47+
}
48+
49+
&:hover {
50+
&::-webkit-scrollbar-thumb {
51+
background-color: lighten($bg-color, 15);
52+
}
53+
}
54+
55+
&::-webkit-scrollbar {
56+
width: 6px;
57+
background-color: $bg-color;
58+
}
59+
4860
.sidebar-header {
4961
height: $sidebar-header-height;
5062
min-height: $sidebar-header-height;

0 commit comments

Comments
 (0)