From 59e9717ff284cd88b24d9771bf7f26d30e958c0e Mon Sep 17 00:00:00 2001 From: simurai Date: Sat, 29 Oct 2016 10:17:06 +0900 Subject: [PATCH] Adjust diff indentation --- lib/views/hunk-view.js | 2 +- styles/hunk-view.less | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/views/hunk-view.js b/lib/views/hunk-view.js index 19b449431b..b92f36354c 100644 --- a/lib/views/hunk-view.js +++ b/lib/views/hunk-view.js @@ -98,7 +98,7 @@ class LineView {
{oldLineNumber}
{newLineNumber}
- {line.getOrigin()} + {line.getOrigin()} {line.getText()}
diff --git a/styles/hunk-view.less b/styles/hunk-view.less index 124fb2a162..03cd134570 100644 --- a/styles/hunk-view.less +++ b/styles/hunk-view.less @@ -53,11 +53,14 @@ -webkit-font-smoothing: antialiased; } + &-plusMinus { + margin-right: 1ch; + } + &-lineContent { flex: 1; - padding: 0 .5em; - padding: 0 .5em 0 3em; // indent 2 levels - text-indent: -2.5em; // but only when soft-wrapped + padding: 0 .5em 0 3ch; // indent 3 characters + text-indent: -2ch; // remove indentation for the +/- white-space: pre-wrap; word-wrap: break-word; }