From 546052ee739dbe6df3fd4d45094b5a7974c670db Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 6 Oct 2019 14:01:38 +0100 Subject: [PATCH] Update git if data change, hide on click, -31px --- lib/ice-coder.js | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 21b709a..ab93886 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -159,19 +159,20 @@ var ICEcoder = { if (data.timestamps.changed) { top.ICEcoder.indexData = data; } - // If we have git diff data - if (data.git) { - top.ICEcoder.indexData.git = data.git; - var gitContent = ""; - for (var i=0; i" + - top.ICEcoder.indexData.git.paths[i] + - "" + - "\n"; - top.get("git").innerHTML = gitContent; + // If we have git diff data + if (data.git) { + top.ICEcoder.indexData.git = data.git; + var gitContent = ""; + for (var i=0; i" + + top.ICEcoder.indexData.git.paths[i] + + "" + + "\n"; + top.get("git").innerHTML = gitContent + "

"; + } } } top.ICEcoder.indexing = false; @@ -212,9 +213,9 @@ var ICEcoder = { if (!dontSetEditor) { this.editor.style.width = ICEcoder.content.style.width = (winW-this.filesW) - 200 + "px"; ICEcoder.terminal.style.width = (winW-this.filesW) + "px"; - ICEcoder.output.style.width = (winW-this.filesW) + "px"; + ICEcoder.output.style.width = (winW-this.filesW-31) + "px"; ICEcoder.database.style.width = (winW-this.filesW) + "px"; - ICEcoder.git.style.width = (winW-this.filesW) + "px"; + ICEcoder.git.style.width = (winW-this.filesW-31) + "px"; ICEcoder.content.style.height = (winH-headerH-tabsBarH-findBarH-26) + "px"; ICEcoder.terminal.style.height = winH + "px"; ICEcoder.output.style.height = winH + "px";