Commit 6a2c7d80cbfe33cca71c11339f3443d9c6a33069

Authored by gitlabhq
1 parent 42ba6d04

fixed image preview

app/assets/stylesheets/projects.css.scss
... ... @@ -469,3 +469,5 @@ body.project-page table.no-borders td{
469 469 padding:40px;
470 470 display:none;
471 471 }
  472 +
  473 +#tree-content-holder { float:left; width:100%; }
... ...
app/models/tree.rb
1 1 class Tree
  2 + include Utils::FileHelper
2 3 attr_accessor :path, :tree, :project, :ref
3 4  
4 5 delegate :contents,
... ...
app/views/refs/tree.js.haml
1 1 :plain
2   - $("#tree-holder table").hide("slide", { direction: "left" }, 150, function(){
  2 + $("#tree-content-holder").hide("slide", { direction: "left" }, 150, function(){
3 3 $("#tree-holder").html("#{escape_javascript(render(:partial => "tree", :locals => {:repo => @repo, :commit => @commit, :tree => @tree}))}");
4   - $("#tree-holder table").show("slide", { direction: "right" }, 150);
  4 + $("#tree-content-holder").show("slide", { direction: "right" }, 150);
5 5 });
... ...