From 5601fc6bd31ba536f67a493d78154a077d33676a Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 10 Feb 2012 18:28:37 -0500 Subject: [PATCH] fix --- app/assets/stylesheets/specific/posts.css.scss | 2 +- app/presenters/post_presenter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index 34a4f6263..8ebd3eb92 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -14,7 +14,7 @@ article.post-preview { @include inline-block; img.wide { - margin: 0 -25%; + margin-left: -25%; } } diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index cfcb88f85..6520fff3c 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 && post.image_width > Danbooru.config.small_image_width && !post.is_flash? + if post.image_width > post.image_height * 1.3 && post.image_width > Danbooru.config.small_image_width && !post.is_flash? klass = "wide" else klass = "tall"