Commit 8fc9b5c0e26b05f88396cc896a2079b88325c4ce

Authored by Dmitriy Zaporozhets
1 parent 0253c949

Small UI improvement to snippet form

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/assets/stylesheets/sections/snippets.scss
1 -.snippet.file-holder {  
2 - .file-title {  
3 - .snippet-file-name {  
4 - padding: 4px 10px;  
5 - position: relative;  
6 - top: -4px;  
7 - left: -4px;  
8 - }  
9 - }  
10 -}  
11 -  
12 .my-snippets li:first-child { 1 .my-snippets li:first-child {
13 h4 { margin-top: 0; } 2 h4 { margin-top: 0; }
14 padding-top: 0; 3 padding-top: 0;
app/views/projects/snippets/_form.html.haml
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 .col-sm-10 18 .col-sm-10
19 .file-holder.snippet 19 .file-holder.snippet
20 .file-title 20 .file-title
21 - = f.text_field :file_name, placeholder: "example.rb", class: 'snippet-file-name', required: true 21 + = f.text_field :file_name, placeholder: "example.rb", class: 'form-control snippet-file-name', required: true
22 .file-content.code 22 .file-content.code
23 %pre#editor= @snippet.content 23 %pre#editor= @snippet.content
24 = f.hidden_field :content, class: 'snippet-file-content' 24 = f.hidden_field :content, class: 'snippet-file-content'