summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-04-26 19:01:24 +0000
committerJacob Schatz <jschatz@gitlab.com>2016-04-26 19:01:24 +0000
commitdfe0ec8f72a13da2b45c52761a846204c2e66326 (patch)
tree415a2007fc4589b2658f7444cf3965ca4ce43da2
parent18e00e3ba316b464bd0a6a78ae0c2669afa15f5a (diff)
parentbf021fbbba92924e4925a0f085a70f75472a24e4 (diff)
downloadgitlab-ce-dfe0ec8f72a13da2b45c52761a846204c2e66326.tar.gz
Merge branch 'parallel-diff-alignment' into 'master'
Reduce width of parallel diffs At 50% width the alignment is off on parallel diffs (see https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3785/diffs and view in Side-by-Side) Reducing width lines them up: <img src="/uploads/5775d35b0e86397abd10db6195a8a54d/Screen_Shot_2016-04-22_at_2.19.21_PM.png" width="400px"> Also shifted comment button over to center it properly: <img src="/uploads/c2468e15bb65523464a941001c3d7298/Screen_Shot_2016-04-22_at_2.24.33_PM.png" width="200px"> See merge request !3891
-rw-r--r--app/assets/stylesheets/pages/diff.scss11
1 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss
index e7c8198ba45..1a7d5f9666e 100644
--- a/app/assets/stylesheets/pages/diff.scss
+++ b/app/assets/stylesheets/pages/diff.scss
@@ -98,7 +98,11 @@
}
td.line_content.parallel {
- width: 50%;
+ width: 46%;
+ }
+
+ .add-diff-note {
+ margin-left: -65px;
}
}
@@ -127,8 +131,13 @@
margin: 0;
padding: 0 0.5em;
border: none;
+
&.parallel {
display: table-cell;
+
+ span {
+ word-break: break-all;
+ }
}
}