Skip to content

Commit

Permalink
Add line numbers in SQL input textarea
Browse files Browse the repository at this point in the history
Bug: T315066
  • Loading branch information
siddharthvp committed Jun 17, 2024
1 parent 76b3e85 commit 3a14bab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions quarry/web/static/css/query/view.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ table#query-results-sampled {
min-height: 144px;
}

.cm-s-monokai .CodeMirror-linenumber {
color: #858484;
}

#code {
font-family: Monaco, Consolas, "Ubuntu Mono", monospace;
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion quarry/web/static/js/query/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ $( function () {
mode: 'text/x-mariadb',
theme: 'monokai',
readOnly: !vars.can_edit,
matchBrackets: true
matchBrackets: true,
lineNumbers: true
} );
}

Expand Down

0 comments on commit 3a14bab

Please sign in to comment.