From 74a4a3de132e58832d3b79436ee38c56201e741a Mon Sep 17 00:00:00 2001 From: "Timothy N. Tsvetkov" Date: Fri, 1 Apr 2011 13:04:19 +0400 Subject: [PATCH] minor C --- app/views/git/blobs/show.html.haml | 4 ++-- public/stylesheets/git/style.css | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/git/blobs/show.html.haml b/app/views/git/blobs/show.html.haml index 2fdd48801..01aaa6fb5 100644 --- a/app/views/git/blobs/show.html.haml +++ b/app/views/git/blobs/show.html.haml @@ -29,10 +29,10 @@ .clear %table.table.blob %tr - %td.lines{ :style => "vertical-align: top" } + %td.lines :plain
#{render_line_numbers(@blob.data.split("\n").length)}
- %td.blob{ :style => "vertical-align: top" } + %td.blob :plain
#{render_blob(@blob)}
diff --git a/public/stylesheets/git/style.css b/public/stylesheets/git/style.css index 90861311e..778a57f36 100644 --- a/public/stylesheets/git/style.css +++ b/public/stylesheets/git/style.css @@ -88,6 +88,7 @@ table.blob td { table.blob td.lines { width: auto; + vertical-align: top; } table.blob td.lines pre { @@ -98,6 +99,10 @@ table.blob td.lines pre { padding: 10px; } +table.blob td.blob { + vertical-align: top; +} + table.blob td.blob pre { padding: 10px; }