Skip to content

Commit 7c84dbc

Browse files
authored
fix gitgraph commit hashes in dark theme (#10046)
because the CSS was lazy-loaded the rules in arc-green did not win. included the css file in the main bundle to fix. the black dots can not be fixed via CSS because they are drawn in a `<canvas>` element unfortunately.
1 parent b9690d7 commit 7c84dbc

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

templates/pwa/serviceworker_js.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ var urlsToCache = [
1919
'{{StaticUrlPrefix}}/vendor/plugins/vue/vue.min.js',
2020

2121
// css
22-
'{{StaticUrlPrefix}}/css/gitgraph.css',
23-
'{{StaticUrlPrefix}}/css/highlight.css',
2422
'{{StaticUrlPrefix}}/css/index.css?v={{MD5 AppVer}}',
2523
'{{StaticUrlPrefix}}/css/swagger.css?v={{MD5 AppVer}}',
2624
'{{StaticUrlPrefix}}/fomantic/semantic.min.css?v={{MD5 AppVer}}',

web_src/js/gitGraphLoader.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ $(async () => {
22
const graphCanvas = document.getElementById('graph-canvas');
33
if (!graphCanvas) return;
44

5-
const [{ default: gitGraph }] = await Promise.all([
6-
import(/* webpackChunkName: "gitgraph" */'./gitGraph.js'),
7-
import(/* webpackChunkName: "gitgraph" */'../css/gitGraph.css'),
8-
]);
5+
const { default: gitGraph } = await import(/* webpackChunkName: "gitgraph" */'./gitGraph.js');
96

107
const graphList = [];
118
$('#graph-raw-list li span.node-relation').each(function () {

web_src/less/index.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@
1414
@import "_explore";
1515
@import "_review";
1616
@import "~highlight.js/styles/github.css";
17+
@import "../css/gitGraph.css";

0 commit comments

Comments
 (0)