File tree Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Expand file tree Collapse file tree 5 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ export class SearchForm extends React.Component {
73
73
}
74
74
75
75
updateSearch ( params , hashes = [ ] , append = false ) {
76
- this . resultView . scrollTop = 0 ;
76
+ if ( ! append ) {
77
+ this . resultView . scrollTop = 0 ;
78
+ }
77
79
if ( ! params . searchStringRegEx ) {
78
80
// Escape regex characters
79
81
params . searchString = params . searchString . replace ( / [ \- \[ \] \/ \{ \} \( \) \* \+ \? \. \\ \^ \$ \| ] / g, "\\$&" ) ;
@@ -140,7 +142,7 @@ export class SearchForm extends React.Component {
140
142
</ span >
141
143
</ div > : null
142
144
}
143
- < div className = "Results" ref = { ( ref ) => this . resultView = this . resultView || ref } >
145
+ < div className = "Results no-scroll-bar " ref = { ( ref ) => this . resultView = this . resultView || ref } >
144
146
{ ( results . length > 0 ) ?
145
147
< ConnectedInfiniteScroll loadMore = { ( ) => this . loadMore ( hashes ) } hasMore = { searchString || location } >
146
148
{
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ html {
15
15
background-color : #21252b ;
16
16
}
17
17
18
+ body {
19
+ overflow : hidden ;
20
+ }
21
+
18
22
input [type = " submit" ],
19
23
input [type = " reset" ],
20
24
input [type = " button" ],
@@ -85,8 +89,11 @@ button {
85
89
}
86
90
}
87
91
88
- .prism-show-language-label {
89
- display : none !important ;
92
+ .no-scroll-bar {
93
+ padding-right : 30px ;
94
+ margin-right : -30px ;
95
+ padding-bottom : 30px ;
96
+ margin-bottom : -30px ;
90
97
}
91
98
92
99
.pulse :before {
Original file line number Diff line number Diff line change 1
1
.SnippetContainer {
2
2
margin-bottom : 24px ;
3
- overflow-x : hidden ;
3
+ overflow : hidden ;
4
4
5
5
pre {
6
6
@include display-flex ;
20
20
.Snippet-code {
21
21
background : #2b303b ;
22
22
border : 1px solid #181a1f ;
23
+ overflow : hidden ;
23
24
24
25
.hljs {
25
- margin : 16px ;
26
26
font-family : ' Inconsolata' , monospace ;
27
27
font-size : 15px ;
28
28
line-height : 20px ;
29
- margin-left : 48px ;
30
29
padding : 0 ;
31
30
background : none ;
32
31
z-index : 1 ;
32
+ margin : 16px 0 ;
33
+ padding-left : 64px ;
34
+ padding-bottom : 25px ;
33
35
}
34
36
}
35
37
Original file line number Diff line number Diff line change 2
2
background-color : #1b1d23 ;
3
3
@include flex (3 );
4
4
height : 100% ;
5
- overflow : scroll ;
5
+ overflow-y : scroll ;
6
6
7
7
pre {
8
8
background : #1b1d23 !important ;
16
16
17
17
.SnippetContainer {
18
18
margin-top : 56px ;
19
+
20
+ .hljs {
21
+ margin-bottom : 0 ;
22
+ }
19
23
}
24
+
20
25
}
21
26
22
27
.Header {
Original file line number Diff line number Diff line change 5
5
padding : 11px 16px ;
6
6
color : #ddd ;
7
7
height : 100% ;
8
- overflow : scroll ;
8
+ overflow-y : hidden ;
9
9
box-sizing : border-box ;
10
10
border-right : 1px solid #15191c ;
11
11
You can’t perform that action at this time.
0 commit comments