Commit 1c23333f344205f97fc909af724ed88c2ee45c2b

Authored by Dmitriy Zaporozhets
1 parent 9d09d616

Align issue box content and mr widgets vertically

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/generic/issue_box.scss
... ... @@ -56,23 +56,22 @@
56 56  
57 57 .state {
58 58 border-bottom: 1px solid #DDD;
59   - padding: 10px 25px;
  59 + padding: 10px 15px;
60 60 }
61 61  
62 62 .title {
63   - font-size: 26px;
  63 + font-size: 28px;
64 64 font-weight: normal;
65 65 line-height: 1.5;
66 66 margin: 0;
67 67 color: #333;
68   - padding-bottom: 0;
69   - padding: 15px 25px;
  68 + padding: 10px 15px;
70 69 }
71 70  
72 71 .context {
73 72 border: none;
74 73 border-top: 1px solid #eee;
75   - padding: 15px 25px;
  74 + padding: 10px 15px;
76 75  
77 76 // Reset text align for children
78 77 .text-right > * { text-align: left; }
... ... @@ -88,7 +87,7 @@
88 87 }
89 88  
90 89 .description {
91   - padding: 0 25px 15px 25px;
  90 + padding: 0 15px 10px 15px;
92 91 }
93 92  
94 93 .title, .context, .description {
... ...
app/assets/stylesheets/sections/merge_requests.scss
... ... @@ -118,3 +118,7 @@
118 118 .merge-request-show-labels .label {
119 119 padding: 6px 10px;
120 120 }
  121 +
  122 +.mr-commits .commit {
  123 + padding: 10px 15px;
  124 +}
... ...
app/views/projects/merge_requests/show/_commits.html.haml
... ... @@ -3,7 +3,7 @@
3 3 .panel-heading
4 4 %i.icon-list
5 5 Commits (#{@commits.count})
6   - .commits
  6 + .commits.mr-commits
7 7 - if @commits.count > 8
8 8 %ul.first-commits.well-list
9 9 - @commits.first(8).each do |commit|
... ...