From 04251a3da3349179d54e4882aafa6dc26bffed65 Mon Sep 17 00:00:00 2001 From: Peter Cottle Date: Sat, 22 Sep 2012 21:59:30 -0700 Subject: [PATCH] nice formatting now on errors and results with tricky css --- src/git.js | 2 ++ src/style/main.css | 17 ++++++++++++++++- src/visuals.js | 2 +- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/git.js b/src/git.js index 45c61514..29337d84 100644 --- a/src/git.js +++ b/src/git.js @@ -861,7 +861,9 @@ var Commit = Backbone.Model.extend({ return [ 'Author: ' + this.get('author'), 'Date: ' + this.get('createTime'), + '
', this.get('commitMessage'), + '
', 'Commit: ' + this.get('id') ].join('\n' ) + '\n'; }, diff --git a/src/style/main.css b/src/style/main.css index a5c5cd24..bc837791 100644 --- a/src/style/main.css +++ b/src/style/main.css @@ -177,7 +177,22 @@ p.commandLine, div.commandLineResult { margin: 0px; } -p.commandLine div.commandLineWarnings p i.icon-exclamation-point { +div.commandLineWarnings p, +div.commandLineResult p { + margin: 0px; +} + +div.commandLineResult p:first-child, +div.commandLineWarnings p:first-child { + padding-top: 8px; +} + +div.commandLineResult p:last-child, +div.commandLineWarnings p:last-child { + padding-bottom: 8px; +} + +div.commandLineWarnings p i.icon-exclamation-sign { color: yellow; margin-right: 5px; } diff --git a/src/visuals.js b/src/visuals.js index cda3a7c4..150b6477 100644 --- a/src/visuals.js +++ b/src/visuals.js @@ -192,7 +192,7 @@ GitVisuals.prototype.addBranch = function(branch) { }); this.visBranchCollection.add(visBranch); if (this.paperReady) { - visBranch.genGraphics(); + visBranch.genGraphics(paper); } };