mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-26 13:06:41 +10:00
Add user_color_scheme class to file_highlight
Prevents an unstyled flash that occurs when we were only applying the syntax highlighting class in Javascript. Now for these uncached blobs the server can add the syntax class, and for (possibly) cached fenced code blocks, the Javascript will add it as needed.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.file-content.code.js-syntax-highlight
|
||||
.file-content.code.js-syntax-highlight{ class: user_color_scheme }
|
||||
.line-numbers
|
||||
- if blob.data.present?
|
||||
- blob.data.lines.each_index do |index|
|
||||
|
||||
Reference in New Issue
Block a user