Commit 6c1b44859d3ddddfbec619ef71f63a4084f5f6dd
1 parent
b339c747
Exists in
master
and in
4 other branches
Fix Haml indenting file content
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/sections/editor.scss
| 1 | .file-editor { | 1 | .file-editor { |
| 2 | #editor{ | 2 | #editor{ |
| 3 | + border: none; | ||
| 3 | height: 500px; | 4 | height: 500px; |
| 4 | - width: 100%; | 5 | + margin: 0; |
| 6 | + padding: 0; | ||
| 5 | position: relative; | 7 | position: relative; |
| 8 | + width: 100%; | ||
| 6 | } | 9 | } |
| 7 | .editor-commit-comment { | 10 | .editor-commit-comment { |
| 8 | padding-top:20px; | 11 | padding-top:20px; |
app/views/tree/edit.html.haml
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | %span.file_name | 6 | %span.file_name |
| 7 | = "#{@tree.path} (#{@ref})" | 7 | = "#{@tree.path} (#{@ref})" |
| 8 | .file_content.code | 8 | .file_content.code |
| 9 | - #editor= @tree.data | 9 | + %pre#editor= @tree.data |
| 10 | 10 | ||
| 11 | .editor-commit-comment | 11 | .editor-commit-comment |
| 12 | = label_tag 'commit_message' do | 12 | = label_tag 'commit_message' do |