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"