Skip to content

Commit

Permalink
made scene headings clickable in navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
venkatgoud committed May 11, 2019
1 parent 52e892e commit 1ccac3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/components/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 44,12 @@ function parse(script) {
let lineNumber = 0;

for (let i = 0; i < src.length; i ) {
const line = src[i];
let line = src[i];

if (SCENE_HEADING.test(line) || SECTION.test(line)) {
if (SCENE_HEADING.test(line)) {
line = '* ' line; //Markdown list
}
lineArray[lineNumber ] = i;
if (!toc) {
toc = line
Expand Down
2 changes: 1 addition & 1 deletion src/styles/navigator.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 13,7 @@
padding: 10px 50px;
}

.cm-header:hover{
.cm-header:hover, .cm-variable-2:hover{
cursor: pointer;
text-decoration-line: underline;
}

0 comments on commit 1ccac3d

Please sign in to comment.