The Unified and Autonomous Development Platform
Add minor blame fixes.
robin shineebb25e3a72e7
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.cssindex 4aa4075fa4..e971f3cd34 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.css@@ -52,6 +52,5 @@background: #2B8D17;}.CodeMirror-annotation.odd {- background: #F81E1E;--}\ No newline at end of file+ background: #F81E1E;+}diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.js b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.jsindex 0cf86d5106..da2b5a17a1 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.js+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/blobview/source/source-view.js@@ -90,13 +90,18 @@ gitplex.sourceview = {if (tokenPos)gitplex.sourceview.highlightToken(cm, tokenPos);- if (blameBlocks)- gitplex.sourceview.blame(cm, blameBlocks);- }+ if (blameBlocks) {+ // render blame blocks with a timer to avoid the issue that occasionally+ // blame gutter becomes much wider than expected+ setTimeout(function() {+ gitplex.sourceview.blame(cm, blameBlocks);+ }, 10);+ }+ }cm.setSize($code.width(), $code.height());});},-+symbolsQueried: function(codeId, symbolsId) {var $symbols = $("#" + symbolsId);var $tooltip = $("#" + codeId + "-symbolstooltip");