Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 014e8db

Browse files
committed
go
1 parent ab896b7 commit 014e8db

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

src/client/app/modules/components/file-viewer.jsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ export class FileViewer extends React.Component {
6767
<div className={"FullView " + className} ref={(ref) => this.parentView = this.parentView || ref}>
6868
<CloseButton onClose={this.closePanel} toggleFull={this.toggleFullScreen}/>
6969
<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>
7779
</div>
7880
);
7981
}

src/client/sass/partials/_code.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
.Snippet-code {
2121
background: #2b303b;
2222
border: 1px solid #181a1f;
23-
overflow: hidden;
23+
overflow: auto;
2424

2525
.hljs {
26+
display: block;
27+
overflow: initial;
2628
font-family: 'Inconsolata', monospace;
2729
font-size: 15px;
2830
line-height: 20px;
@@ -31,7 +33,6 @@
3133
z-index: 1;
3234
margin: 16px 0;
3335
padding-left: 64px;
34-
padding-bottom: 25px;
3536
}
3637
}
3738

src/client/sass/partials/_full-view.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
background-color: #1b1d23;
33
@include flex(3);
44
height: 100%;
5-
overflow-y: scroll;
5+
overflow: auto;
66

77
pre {
88
background: #1b1d23 !important;
@@ -21,7 +21,10 @@
2121
margin-bottom: 0;
2222
}
2323
}
24+
}
2425

26+
.FullCode {
27+
display: inline-block;
2528
}
2629

2730
.Header {

0 commit comments

Comments
 (0)