diff --git a/app/assets/stylesheets/specific/posts.css.scss b/app/assets/stylesheets/specific/posts.css.scss
index 5950187d8..283ac1852 100644
--- a/app/assets/stylesheets/specific/posts.css.scss
+++ b/app/assets/stylesheets/specific/posts.css.scss
@@ -10,10 +10,12 @@ article.post-preview {
margin-right: 20px;
margin-bottom: 20px;
float: left;
- text-align: center;
- vertical-align: middle;
overflow: hidden;
@include inline-block;
+
+ img.wide {
+ margin: 0 -25%;
+ }
}
article.post-preview.blacklisted-active {
diff --git a/app/controllers/mobile/posts_controller.rb b/app/controllers/mobile/posts_controller.rb
deleted file mode 100644
index 08d8abd51..000000000
--- a/app/controllers/mobile/posts_controller.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module Mobile
- class PostsController < ApplicationController
- before_filter :member_only, :except => [:show, :index]
- respond_to :html
- rescue_from PostSets::SearchError, :with => :search_error
- layout "mobile"
-
- def index
- @post_set = PostSets::Post.new(tag_query, params[:page])
- @posts = @post_set.posts
- end
-
- def show
- @post = Post.find(params[:id])
- end
-
- private
- def search_error(exception)
- @exception = exception
- render :action => "error"
- end
-
- def tag_query
- params[:tags] || (params[:post] && params[:post][:tags])
- end
-
- def save_recent_tags
- if tag_query
- tags = Tag.scan_tags(tag_query)
- tags = TagAlias.to_aliased(tags) + Tag.scan_tags(session[:recent_tags])
- session[:recent_tags] = tags.uniq.slice(0, 40).join(" ")
- end
- end
- end
-end
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb
index 5e80668f5..8a6541462 100644
--- a/app/helpers/pagination_helper.rb
+++ b/app/helpers/pagination_helper.rb
@@ -15,7 +15,7 @@ module PaginationHelper
end
def use_sequential_paginator?(records)
- params[:page] =~ /[ab]/ || records.current_page > Danbooru.config.max_numbered_pages
+ params[:page] =~ /[ab]/ || records.current_page >= Danbooru.config.max_numbered_pages
end
def numbered_paginator(records, switch_to_sequential = true)
diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb
index eaee3fdea..3f1e27f45 100644
--- a/app/presenters/post_presenter.rb
+++ b/app/presenters/post_presenter.rb
@@ -13,7 +13,13 @@ class PostPresenter < Presenter
html = %{}
+
+ if post.image_width > post.image_height
+ klass = "wide"
+ else
+ klass = "tall"
+ end
+ html << %{
}
html << %{}
html << %{