diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss index d658cdaa9..0c3e8edf0 100644 --- a/app/assets/stylesheets/specific/posts.css.scss +++ b/app/assets/stylesheets/specific/posts.css.scss @@ -5,10 +5,10 @@ div.post-previews { } article.post-preview { - height: 154px; - width: 154px; - margin-right: 20px; - margin-bottom: 20px; + height: 150px; + width: 150px; + margin-right: 15px; + margin-bottom: 15px; float: left; overflow: hidden; @include inline-block; @@ -26,19 +26,19 @@ article.post-preview img { border: 2px solid transparent; } -article.post-preview.post-status-has-parent img { +article.post-preview.post-status-has-parent { border: 2px solid #CC0; } -article.post-preview.post-status-has-children img { +article.post-preview.post-status-has-children { border: 2px solid #0F0; } -article.post-preview.post-status-pending img { +article.post-preview.post-status-pending { border: 2px solid #00F; } -article.post-preview.post-status-flagged img { +article.post-preview.post-status-flagged { border: 2px solid #F00; } diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 221649b15..a20368007 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 > 150 + if post.image_width > post.image_height && post.image_width > Danbooru.config.small_image_width klass = "wide" else klass = "tall"