mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 16:46:54 +02:00
Fix line highlighting in dark themes (#2921)
This commit is contained in:
@@ -244,7 +244,7 @@ function updateHighlighting() {
|
||||
const isDark = @{highlighterTheme.contains("dark").toString};
|
||||
if (hash.match(/#L\d+(-L\d+)?/)) {
|
||||
if (isDark) {
|
||||
$('li.highlight').removeClass('highlight-dark');
|
||||
$('li.highlight-dark').removeClass('highlight-dark');
|
||||
} else {
|
||||
$('li.highlight').removeClass('highlight');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user