aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/less/_repository.less
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-07-05 02:04:24 +0100
committerGitHub <noreply@github.com>2020-07-05 02:04:24 +0100
commit2ab185d3ab9e4d5a75912467d0b79331b0f94b50 (patch)
tree5817c6f13852c1c2a799f603917327fba903d1a9 /web_src/less/_repository.less
parent3c4388f668413dfcdc4b40501e7a554127599abb (diff)
downloadgitea-2ab185d3ab9e4d5a75912467d0b79331b0f94b50.tar.gz
gitea-2ab185d3ab9e4d5a75912467d0b79331b0f94b50.zip
Rewrite GitGraph.js (#12137)
The current vendored gitgraph.js is no longer maintained and is difficult to understand, fix and maintain. This PR completely rewrites its logic - hopefully in a clearer fashion and easier to maintain. It also includes @silverwind's improvements of coloring the commit dots and preventing the flash of incorrect content. Further changes to contemplate in future will be abstracting out of the flows to an object, storing the involved commit references on the flows etc. However, this is probably a required step for this. Replaces #12131 Fixes #11981 (part 3) Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'web_src/less/_repository.less')
-rw-r--r--web_src/less/_repository.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index c10e8e59df..049d2b097f 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -3078,3 +3078,11 @@ tbody.commit-list {
}
}
}
+
+#git-graph-container {
+ display: none;
+}
+
+#git-graph-container.in {
+ display: block;
+}