From c0bc10304c1f05d471c2a369db95280d847d7859 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 10 Feb 2012 18:09:21 -0500 Subject: [PATCH] fixes --- app/assets/stylesheets/specific/posts.css.scss | 14 +++++++------- app/presenters/post_presenter.rb | 2 +- config/environments/production.rb | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 283ac1852..d658cdaa9 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -5,8 +5,8 @@ div.post-previews { } article.post-preview { - height: 150px; - width: 150px; + height: 154px; + width: 154px; margin-right: 20px; margin-bottom: 20px; float: left; @@ -23,23 +23,23 @@ article.post-preview.blacklisted-active { } article.post-preview img { - border: 3px solid transparent; + border: 2px solid transparent; } article.post-preview.post-status-has-parent img { - border: 3px solid #CC0; + border: 2px solid #CC0; } article.post-preview.post-status-has-children img { - border: 3px solid #0F0; + border: 2px solid #0F0; } article.post-preview.post-status-pending img { - border: 3px solid #00F; + border: 2px solid #00F; } article.post-preview.post-status-flagged img { - border: 3px solid #F00; + border: 2px solid #F00; } .category-1 a { diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 3f1e27f45..221649b15 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -14,7 +14,7 @@ class PostPresenter < Presenter html = %{
} html << %{} - if post.image_width > post.image_height + if post.image_width > post.image_height && post.image_width > 150 klass = "wide" else klass = "tall" diff --git a/config/environments/production.rb b/config/environments/production.rb index e30978073..c33e15c7c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -15,7 +15,7 @@ Danbooru::Application.configure do config.assets.compress = true # Don't fallback to assets pipeline if a precompiled asset is missed - config.assets.compile = false + config.assets.compile = true # Generate digests for assets URLs config.assets.digest = true