File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,15 @@ export class FileViewer extends React.Component {
67
67
< div className = { "FullView " + className } ref = { ( ref ) => this . parentView = this . parentView || ref } >
68
68
< CloseButton onClose = { this . closePanel } toggleFull = { this . toggleFullScreen } />
69
69
< Header filePath = { currentFilePath } lno = { line } />
70
- < ConnectedCodeView
71
- key = { currentFilePath }
72
- lno = { line }
73
- start = { 1 }
74
- filePath = { currentFilePath }
75
- setScroll = { this . scrollToFocusedLine }
76
- />
70
+ < div className = "FullCode" >
71
+ < ConnectedCodeView
72
+ key = { currentFilePath }
73
+ lno = { line }
74
+ start = { 1 }
75
+ filePath = { currentFilePath }
76
+ setScroll = { this . scrollToFocusedLine }
77
+ />
78
+ </ div >
77
79
</ div >
78
80
) ;
79
81
}
Original file line number Diff line number Diff line change 20
20
.Snippet-code {
21
21
background : #2b303b ;
22
22
border : 1px solid #181a1f ;
23
- overflow : hidden ;
23
+ overflow : auto ;
24
24
25
25
.hljs {
26
+ display : block ;
27
+ overflow : initial ;
26
28
font-family : ' Inconsolata' , monospace ;
27
29
font-size : 15px ;
28
30
line-height : 20px ;
31
33
z-index : 1 ;
32
34
margin : 16px 0 ;
33
35
padding-left : 64px ;
34
- padding-bottom : 25px ;
35
36
}
36
37
}
37
38
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-y : scroll ;
5
+ overflow : auto ;
6
6
7
7
pre {
8
8
background : #1b1d23 !important ;
21
21
margin-bottom : 0 ;
22
22
}
23
23
}
24
+ }
24
25
26
+ .FullCode {
27
+ display : inline-block ;
25
28
}
26
29
27
30
.Header {
You can’t perform that action at this time.
0 commit comments